Enumeration warnings

This commit is contained in:
ThePhD 2016-03-30 03:24:07 -04:00
parent 3abcf7f086
commit 3f753b55b9

View File

@ -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