better control for compatibility code
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user