diff options
Diffstat (limited to 'lauxlib.h')
| -rw-r--r-- | lauxlib.h | 14 |
1 files changed, 1 insertions, 13 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.89 2007/02/07 17:51:21 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.90 2007/05/15 18:46:12 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,18 +15,6 @@ | |||
| 15 | #include "lua.h" | 15 | #include "lua.h" |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #if defined(LUA_COMPAT_GETN) | ||
| 19 | LUALIB_API int (luaL_getn) (lua_State *L, int t); | ||
| 20 | LUALIB_API void (luaL_setn) (lua_State *L, int t, int n); | ||
| 21 | #else | ||
| 22 | #define luaL_getn(L,i) ((int)lua_objlen(L, i)) | ||
| 23 | #define luaL_setn(L,i,j) ((void)0) /* no op! */ | ||
| 24 | #endif | ||
| 25 | |||
| 26 | #if defined(LUA_COMPAT_OPENLIB) | ||
| 27 | #define luaI_openlib luaL_openlib | ||
| 28 | #endif | ||
| 29 | |||
| 30 | 18 | ||
| 31 | /* extra error code for `luaL_load' */ | 19 | /* extra error code for `luaL_load' */ |
| 32 | #define LUA_ERRFILE (LUA_ERRERR+1) | 20 | #define LUA_ERRFILE (LUA_ERRERR+1) |
