From 595fd25a80c569d104bc53cbfb9e46654134b4e1 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 18 Dec 2023 13:55:13 -0600 Subject: config and io functions --- src/reg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/reg.c') diff --git a/src/reg.c b/src/reg.c index e443cae..10c9e33 100644 --- a/src/reg.c +++ b/src/reg.c @@ -1,6 +1,7 @@ #include "lua.h" #include "table.h" #include "crypto.h" +#include "config.h" #include "io.h" #include "math.h" @@ -23,6 +24,10 @@ int luaopen_llib(lua_State* L) { lua_newtable(L); luaL_register(L, NULL, math_function_list); lua_setfield(L, 2, "math"); + + lua_newtable(L); + luaL_register(L, NULL, config_function_list); + lua_setfield(L, 2, "config"); //make llib global lua_setglobal(L, "llib"); return 1; -- cgit v1.2.3