diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/util.c b/src/util/util.c index 52e2a16..6f1ee44 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -1,6 +1,5 @@ #include <lua.h> #include <lauxlib.h> -#include <honeysuckle.h> #include "util.h" void create_table(lua_State *L, struct honey_tbl_t *tbl) @@ -48,10 +47,11 @@ void setup_util(lua_State *L, int honey_tbl) lua_setfield(L, -2, "__gc"); lua_pop(L, 1); - hs_create_table(L, - hs_str_cfunc("gc_canary", gc_canary), - ); - + struct honey_tbl_t util[] = { + H_FUNC("gc_canary", gc_canary), + H_END, + }; + create_table(L, util); lua_setfield(L, honey_tbl, "util"); } |