aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-18 13:55:13 -0600
committerame <[email protected]>2023-12-18 13:55:13 -0600
commit9a4d5574a89c4a7842211238d8b9b30b905cc056 (patch)
tree17506097f415d4bddcdf3566d3ce0de08ab9a377 /src/reg.c
parent9607c2fff47e764efba9ec0e12291d9368ae9073 (diff)
config and io functions
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c5
1 files changed, 5 insertions, 0 deletions
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;