lua-users home
lua-l archive

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


> Thanks. In other words, you mean -- wherever my C++ code calls lua code,
> explicity check the return status, and if it is non-zero, call
> lua_tostring(L, -1) for the error message.

Yes.

> That shouldn't be too much work to port -- since all calls into Lua code are
> localized. Probably the easiest way to port would be to wrap all my "call
> lua" code in one place, and call that function.

Yes, that's what lua.c does.
 
> Does taking out the call to _ALERT improve performance, or was it deprecated
> for some other reason?

_ALERT was removed because Lua 5.0 replaced lua_do* with lua_load, which is
more flexible. Also, Lua 5.0's core no longer depends on stdio. (Lua 5.1 will
not depend on malloc either.) Removing _ALERT is part of a general cleanup.
--lhf