We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973fd8a commit c3f1b2eCopy full SHA for c3f1b2e
binding/lua_thread.cpp
@@ -69,7 +69,11 @@ namespace bee::lua_thread {
69
static int thread_luamain(lua_State* L) {
70
lua_pushboolean(L, 1);
71
lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV");
72
+#if LUA_VERSION_NUM >= 505
73
+ luaL_openselectedlibs(L, ~0, 0);
74
+#else
75
luaL_openlibs(L);
76
+#endif
77
thread_args* args = lua::tolightud<thread_args*>(L, 1);
78
lua_pushinteger(L, args->id);
79
lua_rawsetp(L, LUA_REGISTRYINDEX, &THREADID);
0 commit comments