lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>I don't use pcall(), whatever that is.
>
>All Lua code in my Game Engine is executed with lua_dostring.

lua_dostring is marked to be renamed luaL_dostring, as it is now in the auxlib.
Moreover, the _ALERT scheme is deprecated.

The correct way to handle your problem is to call luaL_loadbuffer, handle any
errors that it returns, and then call pcall() and handle any errors that it
returns.  See http://lua-users.org/lists/lua-l/2002-12/msg00046.html .
--lhf