diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 16:09:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-20 16:09:05 -0300 |
commit | 38da9d568a4702a6f9405882db56c2a2aa3189c1 (patch) | |
tree | 2be313995c06dd80b8dcf6ccf8434b6ba7df1b30 /luaconf.h | |
parent | f21e9c172f9f15d8d7501e35635e78dc11f5ff58 (diff) | |
download | lua-38da9d568a4702a6f9405882db56c2a2aa3189c1.tar.gz lua-38da9d568a4702a6f9405882db56c2a2aa3189c1.tar.bz2 lua-38da9d568a4702a6f9405882db56c2a2aa3189c1.zip |
better use defined/undefined as flag values for macros
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.49 2005/05/17 19:49:15 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.50 2005/05/20 15:53:42 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -257,31 +257,31 @@ | |||
257 | 257 | ||
258 | /* | 258 | /* |
259 | @@ LUA_COMPAT_GETN controls compatibility with old getn behavior. | 259 | @@ LUA_COMPAT_GETN controls compatibility with old getn behavior. |
260 | ** CHANGE it to 1 if you want exact compatibility with the behavior of | 260 | ** CHANGE it (define it) if you want exact compatibility with the |
261 | ** setn/getn in Lua 5.0. | 261 | ** behavior of setn/getn in Lua 5.0. |
262 | */ | 262 | */ |
263 | #define LUA_COMPAT_GETN 0 | 263 | #undef LUA_COMPAT_GETN |
264 | 264 | ||
265 | /* | 265 | /* |
266 | @@ LUA_COMPAT_PATH controls compatibility about LUA_PATH. | 266 | @@ LUA_COMPAT_PATH controls compatibility about LUA_PATH. |
267 | ** CHANGE it to 1 if you want 'require' to look for global LUA_PATH | 267 | ** CHANGE it (define it) if you want 'require' to look for global |
268 | ** before checking package.path. | 268 | ** LUA_PATH before checking package.path. |
269 | */ | 269 | */ |
270 | #define LUA_COMPAT_PATH 0 | 270 | #undef LUA_COMPAT_PATH |
271 | 271 | ||
272 | /* | 272 | /* |
273 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. | 273 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. |
274 | ** CHANGE it to 1 if you want a global 'loadlib' function (otherwise | 274 | ** CHANGE it to undefined as soon as you do not need a global 'loadlib' |
275 | ** the function is only available as 'package.loadlib'). | 275 | ** function (the function is still available as 'package.loadlib'). |
276 | */ | 276 | */ |
277 | #define LUA_COMPAT_LOADLIB 1 | 277 | #define LUA_COMPAT_LOADLIB |
278 | 278 | ||
279 | /* | 279 | /* |
280 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. | 280 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. |
281 | ** CHANGE it to 1 if you want vararg functions that do not use '...' | 281 | ** CHANGE it to undefined as soon as your programs use '...' to access |
282 | ** to get an 'arg' table with their extra arguments. | 282 | ** vararg parameters (instead of the old 'arg' table). |
283 | */ | 283 | */ |
284 | #define LUA_COMPAT_VARARG 1 | 284 | #define LUA_COMPAT_VARARG |
285 | 285 | ||
286 | /* | 286 | /* |
287 | @@ LUA_COMPAT_LSTR controls compatibility with old long string nesting | 287 | @@ LUA_COMPAT_LSTR controls compatibility with old long string nesting |