Replaced already in Lua 5.1 deprecated lua_open()
In Lua 5.1 lua_open directly calls luaL_newstate, but was deprecated. In Lua 5.2 lua_open was removed. Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
This commit is contained in:
parent
db0d23606d
commit
508dce9c14
|
@ -50,7 +50,7 @@ eprint_version(void)
|
|||
#endif
|
||||
printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME);
|
||||
|
||||
lua_State *L = lua_open();
|
||||
lua_State *L = luaL_newstate();
|
||||
luaopen_base(L);
|
||||
lua_getglobal(L, "_VERSION");
|
||||
printf(" • Compiled against " LUA_RELEASE
|
||||
|
|
Loading…
Reference in New Issue