initial separation, in CallInfo, of what is relevant only to Lua

functions or only to C functions
This commit is contained in:
Roberto Ierusalimschy
2009-03-04 10:32:29 -03:00
parent 7837e34e56
commit 1817dfc301
4 changed files with 15 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.36 2008/08/26 13:27:42 roberto Exp roberto $
** $Id: lstate.h,v 2.37 2009/02/18 17:20:56 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -83,7 +83,11 @@ typedef struct CallInfo {
const Instruction *savedpc;
short nresults; /* expected number of results from this function */
lu_byte callstatus;
int tailcalls; /* number of tail calls lost under this entry */
union {
struct { /* only for Lua functions */
int tailcalls; /* number of tail calls lost under this entry */
} l;
} u;
} CallInfo;