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:
Michal Vyskocil 2012-02-15 19:26:26 -05:00 committed by Paul Beckingham
parent 26cc4e11f5
commit 78e5891cd3
3 changed files with 4 additions and 1 deletions

View file

@ -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.