better control for compatibility code for varargs

This commit is contained in:
Roberto Ierusalimschy
2005-06-13 11:15:54 -03:00
parent 5fa2bec1f0
commit bf2b342ac1
4 changed files with 21 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.h,v 2.14 2005/05/31 14:25:18 roberto Exp roberto $
** $Id: lobject.h,v 2.15 2005/06/06 13:30:25 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -254,8 +254,10 @@ typedef struct Proto {
} Proto;
/* mask for new-style vararg */
#define NEWSTYLEVARARG 2
/* masks for new-style vararg */
#define VARARG_HASARG 1
#define VARARG_ISVARARG 2
#define VARARG_NEEDSARG 4
typedef struct LocVar {
@@ -373,3 +375,4 @@ LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len);
#endif