lua-users home
lua-l archive

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

>> 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.


Except that I think ANSI C says that the preprocessor does not handle floating
point numbers, only integers.


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.