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:
Arvydas Sidorenko 2012-06-08 02:19:07 +02:00 committed by Julien Danjou
parent db0d23606d
commit 508dce9c14
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ eprint_version(void)
#endif #endif
printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME); printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME);
lua_State *L = lua_open(); lua_State *L = luaL_newstate();
luaopen_base(L); luaopen_base(L);
lua_getglobal(L, "_VERSION"); lua_getglobal(L, "_VERSION");
printf(" • Compiled against " LUA_RELEASE printf(" • Compiled against " LUA_RELEASE