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

This commit is contained in:
kervala 2013-07-24 18:47:50 +02:00
parent f514946dfd
commit e367d76b93

View file

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