lua-users home
lua-l archive

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


Hello everyone,

I wasn't able to find an answer to a seemingly basic question anywhere:
Is it possible to disable "assert" function execution along with its
argument evaluation in Lua? I.e. like it is done in C by defining NDEBUG?

Could it be done with the parser ignoring "assert" calls and subsequently
not producing any bytecode for it?

Or maybe there are some other approaches, which I missed?

Thank you :)

Sincerely,
Nick