lua-users home
lua-l archive

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


> A feature of the preprocessor I use often is taken from the current FAQ,
> section 3.6:
> 
>      $if modulename
>      $endinput
>      $end
> 
> I use this quite a bit and would like to know what the equivalent 
> will be under the next version of Lua.

In any case, it's possible to use CPP to preprocess Lua files before
using them. You'll get bogus line numbers in Lua error reports, since
they'll be based on the preprocessed file, but it allows one to use
things like ASSERT, or what you wrote.
Sorry if this shocks purists ;)

-- 
Vincent Penquerc'h