[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Removing debug assertions
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 10 May 2007 09:50:08 -0300
> You could also try the C preprocessor.
The C preprocessor does not know anythinh about Lua syntax and will probably
get confused with comments, long strings and strings in single quote.
Better do it in Lua with something like
string.gsub(source,"assert%b()","")
Make sure your parentheses are balanced in all calls to assert (ie,
the assert messages do not have unbalanced parentheses).
--lhf