From 9607c2fff47e764efba9ec0e12291d9368ae9073 Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 8 Dec 2023 12:33:33 -0600 Subject: lcm --- 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 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; -- cgit v1.2.3