diff options
| author | ame <[email protected]> | 2024-01-18 14:08:57 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-01-18 14:08:57 -0600 |
| commit | 3f562b10d7e7eff3b3aa9fd81453c31f9c01a333 (patch) | |
| tree | 74e039398d6f28e83d38dd24876b8c8e59e1e952 /src/reg.c | |
| parent | a2b6d2fd3db98c227ea1046535e09cfe9ca39265 (diff) | |
almost working http server!
Diffstat (limited to 'src/reg.c')
| -rw-r--r-- | src/reg.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ #include "config.h" #include "io.h" #include "math.h" - +#include "net.h" int luaopen_llib(lua_State* L) { lua_newtable(L); @@ -28,6 +28,10 @@ int luaopen_llib(lua_State* L) { lua_newtable(L); luaL_register(L, NULL, config_function_list); lua_setfield(L, 2, "config"); + + lua_newtable(L); + luaL_register(L, NULL, net_function_list); + lua_setfield(L, 2, "net"); //make llib global lua_setglobal(L, "llib"); return 1; |
