diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-02 15:46:32 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-02 15:46:32 -0200 |
| commit | 964c503a63af6df00cb3dfca0283be61655b535e (patch) | |
| tree | 70d2da360649261c439f2564c8c9fa1a896ce1ab /lua.h | |
| parent | 90d87e3a78e567f3db307d2c90a63386c881c68d (diff) | |
| download | lua-964c503a63af6df00cb3dfca0283be61655b535e.tar.gz lua-964c503a63af6df00cb3dfca0283be61655b535e.tar.bz2 lua-964c503a63af6df00cb3dfca0283be61655b535e.zip | |
LUA_COMPAT2.5 may use #ifdef instead of #if
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 10 |
1 files changed, 3 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.11 1997/12/15 17:47:55 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.12 1997/12/18 18:32:39 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
| 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
| 5 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
| @@ -146,15 +146,11 @@ long lua_collectgarbage (long limit); | |||
| 146 | 146 | ||
| 147 | /* ========================================================================== | 147 | /* ========================================================================== |
| 148 | ** for compatibility with old versions. Avoid using these macros/functions | 148 | ** for compatibility with old versions. Avoid using these macros/functions |
| 149 | ** If your program does not use any of these, define LUA_COMPAT2_5 to 0 | 149 | ** If your program does need any of these, define LUA_COMPAT2_5 |
| 150 | */ | 150 | */ |
| 151 | 151 | ||
| 152 | #ifndef LUA_COMPAT2_5 | ||
| 153 | #define LUA_COMPAT2_5 1 | ||
| 154 | #endif | ||
| 155 | |||
| 156 | 152 | ||
| 157 | #if LUA_COMPAT2_5 | 153 | #ifdef LUA_COMPAT2_5 |
| 158 | 154 | ||
| 159 | 155 | ||
| 160 | lua_Object lua_setfallback (char *event, lua_CFunction fallback); | 156 | lua_Object lua_setfallback (char *event, lua_CFunction fallback); |
