lua-users home
lua-l archive

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


On Tue, Apr 16, 2013 at 9:08 AM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
Or should I just define my own BOOL? (and TRUE and FALSE along with it)

You can use the defines field, alongside the sources field, with something like defines={'BOOL=int','TRUE=1','FALSE=0'}

t's all here in terrifying detail:  http://luarocks.org/en/Rockspec_format  (see 'builtin' build type)

But that's going to be a per-platform override: basic issue is that <windows.h> defines these for you, so it's probably best to use an #ifndef WIN32 and define them in the source.