[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: lua crashes
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 17 Nov 2003 16:10:38 -0200
>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
'-Dapi_check(L,o)=assert(o)'
(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.
--lhf