[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Bug report: Luac -l incompatible with LUAI_ASSERT
- From: Alex Light <allight@...>
- Date: Fri, 3 Sep 2021 14:01:15 -0700
If you compile luac with -DLUAI_ASSERT then `luac -l <file>` will no longer work. The issue is that PrintCode uses the GETARG_Ax... macros at the beginning of a loop but those macros assert that the instruction supports having those arguments read. Since these are called unconditionally the listing will fail as soon as any ABC instruction is encountered.