lua-users home
lua-l archive

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


Correct.
This is my most common usage pattern.

db

Jérôme VUARAND  wrote:
lua_error function is supposed to be called from a protected call, and
all luaL_check* functions call it. Instead you can check the stack
safely with calls to lua_is* and other similar functions. That way you
don't have to add an additionnal pcall layer. Example: