lua-users home
lua-l archive

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


I compiled Lpeg-0.10.1 _without_ -DNDEBUG.

Then, running the test.lua provided in the Lpeg sources (with Lua
5.1.4), an assertion failed:

lua: lpeg.c:792: checkrule: Assertion `op[start - 1].i.code == IChoice
&& ((start - 1) + ((op)+(start - 1))->i.offset) == i + 1' failed.
Aborted

With -DNDEBUG as in the makefile, test.lua runs fine.

Now, I understand that it should be compiled with -DNDEBUG, but I was
just wondering, is it a symptom of something wrong in the code, or
just expected?

TIA,

Phil