mirror of
https://github.com/brunoos/luasec.git
synced 2025-08-30 15:52:19 +02:00
Fix: use luaL_register instead of luaL_openlib
This commit is contained in:
@@ -146,7 +146,7 @@ int timeout_open(lua_State *L) {
|
||||
#if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE)
|
||||
luaL_setfuncs(L, func, 0);
|
||||
#else
|
||||
luaL_openlib(L, NULL, func, 0);
|
||||
luaL_register(L, NULL, func);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user