Version less than 5.2, (5.1 an below) not less than 5.3 (thanks Aezriel!)

This commit is contained in:
ThePhD 2015-12-01 15:00:16 -05:00
parent 7515b8c4ad
commit cc0caf365a

View File

@ -58,7 +58,7 @@ public:
state(lua_CFunction panic = detail::atpanic): state(lua_CFunction panic = detail::atpanic):
L(luaL_newstate(), lua_close), L(luaL_newstate(), lua_close),
reg(L.get(), LUA_REGISTRYINDEX), reg(L.get(), LUA_REGISTRYINDEX),
#if SOL_LUA_VERSION < 503 #if SOL_LUA_VERSION < 502
// Global table is just a special index // Global table is just a special index
global(L.get(), LUA_GLOBALSINDEX) { global(L.get(), LUA_GLOBALSINDEX) {
#else #else