aboutsummaryrefslogtreecommitdiff
path: root/src/pow_lua.c
blob: 0d0214dadf334944b0e8911d3c41efabc1cc1a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}