Re: C preprocessor style #line support
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: C preprocessor style #line support
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2011年8月25日 21:21:05 -0300
> You could actually run Lua files through the C preprocessor for true
> #define support.
It will probably mostly work but note that the C preprocessor does
not understand Lua comments or long strings and will perform macro
substitution on their contents. However, this may be a feature.
Also, cpp will probably choke on any Lua code that uses # in the first
column, but I guess this will be rare :-).