diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-29 13:20:48 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-29 13:20:48 -0300 |
| commit | e6e543a534832d7bb5680cee9d3b589a69c5e2cc (patch) | |
| tree | 934ca8b2d6411cad63174f699857f82875940622 /lauxlib.h | |
| parent | 1c9c8869741897d67b64a27410f3856d34415e87 (diff) | |
| download | lua-e6e543a534832d7bb5680cee9d3b589a69c5e2cc.tar.gz lua-e6e543a534832d7bb5680cee9d3b589a69c5e2cc.tar.bz2 lua-e6e543a534832d7bb5680cee9d3b589a69c5e2cc.zip | |
better control for compatibility code
Diffstat (limited to 'lauxlib.h')
| -rw-r--r-- | lauxlib.h | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.73 2004/10/18 12:51:44 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.74 2005/01/10 17:31:50 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -15,6 +15,12 @@ | |||
| 15 | #include "lua.h" | 15 | #include "lua.h" |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #if !LUA_COMPAT_GETN | ||
| 19 | #define luaL_getn(L,i) lua_objsize(L, i) | ||
| 20 | #define luaL_setn(L,i,j) ((void)0) /* no op! */ | ||
| 21 | #endif | ||
| 22 | |||
| 23 | |||
| 18 | /* extra error code for `luaL_load' */ | 24 | /* extra error code for `luaL_load' */ |
| 19 | #define LUA_ERRFILE (LUA_ERRERR+1) | 25 | #define LUA_ERRFILE (LUA_ERRERR+1) |
| 20 | 26 | ||
