Portability
- lua_open has been declared as deprecated in lua 5.1 and removed from 5.2. Usage of luaL_newstate is thus recommended in both series. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
committed by
Paul Beckingham
parent
26cc4e11f5
commit
78e5891cd3
@@ -131,7 +131,7 @@ API::~API ()
|
||||
void API::initialize ()
|
||||
{
|
||||
// Initialize Lua.
|
||||
_state = lua_open ();
|
||||
_state = luaL_newstate ();
|
||||
luaL_openlibs (_state); // TODO Error handling
|
||||
|
||||
// Register all the API functions in Lua global space.
|
||||
|
||||
Reference in New Issue
Block a user