aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/lstate.h b/lstate.h
index 02715dfb..fad54634 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.150 2017/11/07 13:25:26 roberto Exp roberto $ 2** $Id: lstate.h,v 2.151 2017/11/13 15:36:52 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*/
@@ -104,7 +104,7 @@ typedef struct CallInfo {
104 int nyield; /* number of values yielded */ 104 int nyield; /* number of values yielded */
105 } u2; 105 } u2;
106 short nresults; /* expected number of results from this function */ 106 short nresults; /* expected number of results from this function */
107 unsigned short callstatus; 107 lu_byte callstatus;
108} CallInfo; 108} CallInfo;
109 109
110 110
@@ -114,13 +114,11 @@ typedef struct CallInfo {
114#define CIST_OAH (1<<0) /* original value of 'allowhook' */ 114#define CIST_OAH (1<<0) /* original value of 'allowhook' */
115#define CIST_LUA (1<<1) /* call is running a Lua function */ 115#define CIST_LUA (1<<1) /* call is running a Lua function */
116#define CIST_HOOKED (1<<2) /* call is running a debug hook */ 116#define CIST_HOOKED (1<<2) /* call is running a debug hook */
117#define CIST_FRESH (1<<3) /* call is running on a fresh invocation 117#define CIST_YPCALL (1<<3) /* call is a yieldable protected call */
118 of luaV_execute */ 118#define CIST_TAIL (1<<4) /* call was tail called */
119#define CIST_YPCALL (1<<4) /* call is a yieldable protected call */ 119#define CIST_HOOKYIELD (1<<5) /* last hook called yielded */
120#define CIST_TAIL (1<<5) /* call was tail called */ 120#define CIST_LEQ (1<<6) /* using __lt for __le */
121#define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ 121#define CIST_FIN (1<<7) /* call is running a finalizer */
122#define CIST_LEQ (1<<7) /* using __lt for __le */
123#define CIST_FIN (1<<8) /* call is running a finalizer */
124 122
125#define isLua(ci) ((ci)->callstatus & CIST_LUA) 123#define isLua(ci) ((ci)->callstatus & CIST_LUA)
126 124
@@ -256,6 +254,7 @@ LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
256LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); 254LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L);
257LUAI_FUNC void luaE_freeCI (lua_State *L); 255LUAI_FUNC void luaE_freeCI (lua_State *L);
258LUAI_FUNC void luaE_shrinkCI (lua_State *L); 256LUAI_FUNC void luaE_shrinkCI (lua_State *L);
257LUAI_FUNC void luaE_incCcalls (lua_State *L);
259 258
260 259
261#endif 260#endif