aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-08 12:33:33 -0600
committerame <[email protected]>2023-12-08 12:33:33 -0600
commitc691cc98e31e52982a79ffc10b8e91e8c700592b (patch)
tree5619a723e8ec362e0dd6ef7e816f11e3f09a387f /src/reg.c
parent80aaf2f01c4dda3af60a20a6fa9a89210eb75988 (diff)
lcm
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 50dc8b9..e443cae 100644
--- a/src/reg.c
+++ b/src/reg.c
@@ -2,6 +2,7 @@
#include "table.h"
#include "crypto.h"
#include "io.h"
+#include "math.h"
int luaopen_llib(lua_State* L) {
lua_newtable(L);
@@ -18,6 +19,10 @@ int luaopen_llib(lua_State* L) {
lua_newtable(L);
luaL_register(L, NULL, io_function_list);
lua_setfield(L, 2, "io");
+
+ lua_newtable(L);
+ luaL_register(L, NULL, math_function_list);
+ lua_setfield(L, 2, "math");
//make llib global
lua_setglobal(L, "llib");
return 1;