mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
26cc4e11f5
commit
78e5891cd3
3 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue