mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 12:26:40 +02:00
lua: replace lua_open by luaL_newstate (compatibility with Lua 5.2)
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:
committed by
Sebastien Helleu
parent
2f59774e79
commit
e84099fb97
@@ -261,7 +261,7 @@ weechat_lua_load (const char *filename)
|
||||
lua_current_script = NULL;
|
||||
lua_registered_script = NULL;
|
||||
|
||||
lua_current_interpreter = lua_open ();
|
||||
lua_current_interpreter = luaL_newstate();
|
||||
|
||||
if (lua_current_interpreter == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user