lua-users home
lua-l archive

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


>In lua.h, there is a define LUA_VERSION, which represents the string
>version name of Lua.  It would be handy if there were also a purely
>numeric version define in lua.h, so I could use conditional code in
>my application based on what version of lua I point it at; obviously

If you really need conditional code, then you can use #ifdef LUA_TBOOLEAN
(and several others) to identify Lua 5.0.
--lhf