better control for compatibility code

This commit is contained in:
Roberto Ierusalimschy
2005-03-29 13:20:48 -03:00
parent 1c9c886974
commit e6e543a534
4 changed files with 43 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.73 2004/10/18 12:51:44 roberto Exp roberto $
** $Id: lauxlib.h,v 1.74 2005/01/10 17:31:50 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -15,6 +15,12 @@
#include "lua.h"
#if !LUA_COMPAT_GETN
#define luaL_getn(L,i) lua_objsize(L, i)
#define luaL_setn(L,i,j) ((void)0) /* no op! */
#endif
/* extra error code for `luaL_load' */
#define LUA_ERRFILE (LUA_ERRERR+1)