aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-06-21 10:52:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-06-21 10:52:27 -0300
commit8d3dd04137348b604ec9ebee87df84c8ef5fdced (patch)
tree291dcb423b3f288145196334d8121dacfe1fa3fa /lauxlib.h
parent791d8d858502f34204e0460c73e5eb6d340bcd92 (diff)
downloadlua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.tar.gz
lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.tar.bz2
lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.zip
clearing some old compatibility code
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 1d44c54d..efcd5e3a 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -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)
19LUALIB_API int (luaL_getn) (lua_State *L, int t);
20LUALIB_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)