aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/lstate.h b/lstate.h
index 67b43c29..bc9c454b 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.103 2014/05/15 20:41:27 roberto Exp roberto $ 2** $Id: lstate.h,v 2.104 2014/06/10 17:41:38 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -60,9 +60,9 @@ typedef struct CallInfo {
60 StkId func; /* function index in the stack */ 60 StkId func; /* function index in the stack */
61 StkId top; /* top for this function */ 61 StkId top; /* top for this function */
62 struct CallInfo *previous, *next; /* dynamic call link */ 62 struct CallInfo *previous, *next; /* dynamic call link */
63 ptrdiff_t extra;
63 short nresults; /* expected number of results from this function */ 64 short nresults; /* expected number of results from this function */
64 lu_byte callstatus; 65 lu_byte callstatus;
65 ptrdiff_t extra;
66 union { 66 union {
67 struct { /* only for Lua functions */ 67 struct { /* only for Lua functions */
68 StkId base; /* base for this function */ 68 StkId base; /* base for this function */
@@ -72,8 +72,6 @@ typedef struct CallInfo {
72 lua_KFunction k; /* continuation in case of yields */ 72 lua_KFunction k; /* continuation in case of yields */
73 ptrdiff_t old_errfunc; 73 ptrdiff_t old_errfunc;
74 int ctx; /* context info. in case of yields */ 74 int ctx; /* context info. in case of yields */
75 lu_byte old_allowhook;
76 lu_byte status;
77 } c; 75 } c;
78 } u; 76 } u;
79} CallInfo; 77} CallInfo;
@@ -88,9 +86,9 @@ typedef struct CallInfo {
88 luaV_execute of previous call */ 86 luaV_execute of previous call */
89#define CIST_YIELDED (1<<3) /* call reentered after suspension */ 87#define CIST_YIELDED (1<<3) /* call reentered after suspension */
90#define CIST_YPCALL (1<<4) /* call is a yieldable protected call */ 88#define CIST_YPCALL (1<<4) /* call is a yieldable protected call */
91#define CIST_STAT (1<<5) /* call has an error status (pcall) */ 89#define CIST_TAIL (1<<5) /* call was tail called */
92#define CIST_TAIL (1<<6) /* call was tail called */ 90#define CIST_HOOKYIELD (1<<6) /* last hook called yielded */
93#define CIST_HOOKYIELD (1<<7) /* last hook called yielded */ 91#define CIST_OAH (1<<7) /* original value of 'allowhook' */
94 92
95 93
96#define isLua(ci) ((ci)->callstatus & CIST_LUA) 94#define isLua(ci) ((ci)->callstatus & CIST_LUA)