Fix: use luaL_register instead of luaL_openlib

This commit is contained in:
Bruno Silvestre 2025-07-10 10:33:50 -03:00
parent 4c06287052
commit fa16e04293

View File

@ -146,7 +146,7 @@ int timeout_open(lua_State *L) {
#if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE) #if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE)
luaL_setfuncs(L, func, 0); luaL_setfuncs(L, func, 0);
#else #else
luaL_openlib(L, NULL, func, 0); luaL_register(L, NULL, func);
#endif #endif
return 0; return 0;
} }