From 3f753b55b942dd63fb27ea9bda23370c8cfba631 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Wed, 30 Mar 2016 03:24:07 -0400 Subject: [PATCH] Enumeration warnings --- sol/state_view.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sol/state_view.hpp b/sol/state_view.hpp index ab289211..ceaef050 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -94,12 +94,14 @@ public: luaL_requiref(L, "package", luaopen_package, 1); lua_pop(L, 1); break; -#if SOL_LUA_VERSION > 501 +#if !defined(SOL_LUAJIT) case lib::coroutine: +#if SOL_LUA_VERSION > 501 luaL_requiref(L, "coroutine", luaopen_coroutine, 1); lua_pop(L, 1); - break; #endif // Lua 5.2+ only + break; +#endif // Not LuaJIT case lib::string: luaL_requiref(L, "string", luaopen_string, 1); lua_pop(L, 1); @@ -113,7 +115,7 @@ public: lua_pop(L, 1); break; case lib::bit32: -#if SOL_LUA_VERSION > 510 +#if SOL_LUA_VERSION > 501 luaL_requiref(L, "bit32", luaopen_bit32, 1); lua_pop(L, 1); #else