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! Whereas a single

#define LUA_VERSION_NUMBER 5.0

is all you need, and the other macro can even be defined in terms of it:

#define LUA_VERSION # LUA_VERSION_NUMBER

(good old stringizing is useful!)

-- 
http://www.mupsych.org/~rrt/ | Slow Pedestrian Crossing