diff options
| author | ame <[email protected]> | 2023-12-04 01:04:57 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2023-12-04 01:04:57 -0600 |
| commit | 0cb307c50930d9aba2b1a6af46c1da75943778d3 (patch) | |
| tree | 054f19eb9afeb242539cdf17bbed77898220c0cc /src/reg.c | |
| parent | 7eb07ccdca178abffe5ffccf686b4f818db3601d (diff) | |
crypto stuff and (some) file io
Diffstat (limited to 'src/reg.c')
| -rw-r--r-- | src/reg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,6 +1,7 @@ #include "lua.h" #include "table.h" #include "crypto.h" +#include "io.h" int luaopen_llib(lua_State* L) { lua_newtable(L); @@ -13,6 +14,10 @@ int luaopen_llib(lua_State* L) { lua_newtable(L); luaL_register(L, NULL, crypto_function_list); lua_setfield(L, 2, "crypto"); + + lua_newtable(L); + luaL_register(L, NULL, io_function_list); + lua_setfield(L, 2, "io"); //make llib global lua_setglobal(L, "llib"); return 1; |
