diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-10-19 10:31:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-10-19 10:31:42 -0200 |
commit | 138d00176ca3330b0ad18eb4006605746b68df94 (patch) | |
tree | 2a25fcaa3e658550b4d040d1db61ba2a8670f042 /lstate.h | |
parent | 8edbf57fb8e3c20aac9560b7e4cce7583d14ebf6 (diff) | |
download | lua-138d00176ca3330b0ad18eb4006605746b68df94.tar.gz lua-138d00176ca3330b0ad18eb4006605746b68df94.tar.bz2 lua-138d00176ca3330b0ad18eb4006605746b68df94.zip |
new flag in 'CallInfo.callstatus' to tell whether function is running
as a finalizer
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.130 2015/12/16 16:39:38 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.131 2016/06/16 13:36:09 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,6 +104,7 @@ typedef struct CallInfo { | |||
104 | #define CIST_TAIL (1<<5) /* call was tail called */ | 104 | #define CIST_TAIL (1<<5) /* call was tail called */ |
105 | #define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ | 105 | #define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ |
106 | #define CIST_LEQ (1<<7) /* using __lt for __le */ | 106 | #define CIST_LEQ (1<<7) /* using __lt for __le */ |
107 | #define CIST_FIN (1<<8) /* call is running a finalizer */ | ||
107 | 108 | ||
108 | #define isLua(ci) ((ci)->callstatus & CIST_LUA) | 109 | #define isLua(ci) ((ci)->callstatus & CIST_LUA) |
109 | 110 | ||