lua-users home
lua-l archive

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


> 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