lua-users home
lua-l archive

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

>I have found a few Lua crashes that would have been caught earlier, in a
>completely unrelated call stack, if Lua asserts were enabled. Try that.
>Oddly, the docs don't mention this, or even what you have to define to
>get asserts working. You need to define lua_assert such that it exists
>when including llimits.h and lualib.h.

More precisely, you can turn on API assertions by building Lua with


(Actually, it's enough to recompile lapi.c with this on.)

Perhaps we'll make it easier to enable API assertions in the next version.