summaryrefslogtreecommitdiff
path: root/src/lstate.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2012-06-08 12:00:00 +0000
committerrepogen <>2012-06-08 12:00:00 +0000
commit8c898400a5ddff24ab5b69f79e2c70bab521511d (patch)
treeb773255b1ed3e8785f713b4e7dcaf3de81237f4d /src/lstate.h
parent850623c5e6a01fa1e8541c03b123fe6e35e02feb (diff)
downloadlua-github-8c898400a5ddff24ab5b69f79e2c70bab521511d.tar.gz
Diffstat (limited to 'src/lstate.h')
-rw-r--r--src/lstate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lstate.h b/src/lstate.h
index 936afc2d..29f810ba 100644
--- a/src/lstate.h
+++ b/src/lstate.h
@@ -1,5 +1,5 @@
/*
-** $Id: lstate.h,v 2.80 2012/05/22 17:50:39 roberto Exp $
+** $Id: lstate.h,v 2.81 2012/06/08 15:14:04 roberto Exp $
** Global State
** See Copyright Notice in lua.h
*/
@@ -72,6 +72,7 @@ typedef struct CallInfo {
struct CallInfo *previous, *next; /* dynamic call link */
short nresults; /* expected number of results from this function */
lu_byte callstatus;
+ ptrdiff_t extra;
union {
struct { /* only for Lua functions */
StkId base; /* base for this function */
@@ -81,7 +82,6 @@ typedef struct CallInfo {
int ctx; /* context info. in case of yields */
lua_CFunction k; /* continuation in case of yields */
ptrdiff_t old_errfunc;
- ptrdiff_t extra;
lu_byte old_allowhook;
lu_byte status;
} c;
@@ -100,6 +100,7 @@ typedef struct CallInfo {
#define CIST_YPCALL (1<<4) /* call is a yieldable protected call */
#define CIST_STAT (1<<5) /* call has an error status (pcall) */
#define CIST_TAIL (1<<6) /* call was tail called */
+#define CIST_HOOKYIELD (1<<7) /* last hook called yielded */
#define isLua(ci) ((ci)->callstatus & CIST_LUA)