[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug report: Luac -l incompatible with LUAI_ASSERT
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 6 Sep 2021 10:13:18 -0300
> > If you compile luac with -DLUAI_ASSERT then `luac -l <file>` will no longer work.
>
> Thanks for the report.
> For the time being, add this line at the top of luac.c:
> #undef LUAI_ASSERT
Better yet, you can fix the bug by removing the option -DLUAI_ASSERT.
The LUAI_ASSERT has the following comment:
Internal assertions for in-house debugging
(The prefix LUAI_, instead of LUA_, also hints that it is not intended
for regular use.)
So, if you use this macro, you are on your own.
-- Roberto