mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-12 05:54:28 +02:00
Fix: use luaL_register instead of luaL_openlib
This commit is contained in:
parent
4c06287052
commit
fa16e04293
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user