diff options
| author | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-08-31 13:31:32 +0200 |
|---|---|---|
| committer | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-08-31 13:31:32 +0200 |
| commit | 0334d0060c17f57d7a9b64677e3ca199a6029019 (patch) | |
| tree | aae025393d3c37e92fb071954618964671c5d9bf /src/pow_lua.c | |
| parent | 8f5dc1930debe95e106595da33951bd870672d85 (diff) | |
feat: package info
Diffstat (limited to 'src/pow_lua.c')
| -rw-r--r-- | src/pow_lua.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pow_lua.c b/src/pow_lua.c new file mode 100644 index 0000000..0d0214d --- /dev/null +++ b/src/pow_lua.c @@ -0,0 +1,16 @@ +#include "pow_lua.h" + +#include "lauxlib.h" +#include "lualib.h" + +int pow_lua_hello(lua_State *L) { printf("hi\n"); } + +luaL_Reg libpow[] = {{"hello", pow_lua_hello}}; + +int pow_lua_load(lua_State *L) { + luaL_newlib(L, libpow); + + lua_setglobal(L, "pow"); + + return 0; +} |
