mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Enumeration warnings
This commit is contained in:
parent
3abcf7f086
commit
3f753b55b9
|
@ -94,12 +94,14 @@ public:
|
||||||
luaL_requiref(L, "package", luaopen_package, 1);
|
luaL_requiref(L, "package", luaopen_package, 1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
break;
|
break;
|
||||||
#if SOL_LUA_VERSION > 501
|
#if !defined(SOL_LUAJIT)
|
||||||
case lib::coroutine:
|
case lib::coroutine:
|
||||||
|
#if SOL_LUA_VERSION > 501
|
||||||
luaL_requiref(L, "coroutine", luaopen_coroutine, 1);
|
luaL_requiref(L, "coroutine", luaopen_coroutine, 1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
break;
|
|
||||||
#endif // Lua 5.2+ only
|
#endif // Lua 5.2+ only
|
||||||
|
break;
|
||||||
|
#endif // Not LuaJIT
|
||||||
case lib::string:
|
case lib::string:
|
||||||
luaL_requiref(L, "string", luaopen_string, 1);
|
luaL_requiref(L, "string", luaopen_string, 1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
@ -113,7 +115,7 @@ public:
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
break;
|
break;
|
||||||
case lib::bit32:
|
case lib::bit32:
|
||||||
#if SOL_LUA_VERSION > 510
|
#if SOL_LUA_VERSION > 501
|
||||||
luaL_requiref(L, "bit32", luaopen_bit32, 1);
|
luaL_requiref(L, "bit32", luaopen_bit32, 1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user