Fixed: lua_open() doesn't exist with Lua 5.2

hg/feature/sound
kervala 11 years ago
parent 296b4384a8
commit aeddda3e19

@ -197,6 +197,8 @@ namespace NLGUI
{ {
#ifdef LUA_NEVRAX_VERSION #ifdef LUA_NEVRAX_VERSION
_State = lua_open(l_realloc_func, l_free_func); _State = lua_open(l_realloc_func, l_free_func);
#elif defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
_State = luaL_newstate();
#else #else
_State = lua_open(); _State = lua_open();
#endif #endif

Loading…
Cancel
Save