[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Version
- From: Reuben Thomas <rrt@...>
- Date: Wed, 10 Jul 2002 15:33:15 +0100 (BST)
> 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