[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Version
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 10 Jul 2002 11:39:17 -0300
>> If you really need conditional code, then you can use #ifdef LUA_TBOOLEAN
>> (and several others) to identify Lua 5.0.
>Aw, come on, this is hardly nice!
Yes, I know. I'm not encouraging conditional code.
>#define LUA_VERSION_NUMBER 5.0
Except that I think ANSI C says that the preprocessor does not handle floating
point numbers, only integers.
>#define LUA_VERSION # LUA_VERSION_NUMBER
Except that some compilers choke on this and generate "LUA_VERSION_NUMBER"
instead of "5.0". We've been bitten by this in earlier versions.