From 138d00176ca3330b0ad18eb4006605746b68df94 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 19 Oct 2016 10:31:42 -0200 Subject: new flag in 'CallInfo.callstatus' to tell whether function is running as a finalizer --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 653e1a01..efceed69 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.130 2015/12/16 16:39:38 roberto Exp roberto $ +** $Id: lstate.h,v 2.131 2016/06/16 13:36:09 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -104,6 +104,7 @@ typedef struct CallInfo { #define CIST_TAIL (1<<5) /* call was tail called */ #define CIST_HOOKYIELD (1<<6) /* last hook called yielded */ #define CIST_LEQ (1<<7) /* using __lt for __le */ +#define CIST_FIN (1<<8) /* call is running a finalizer */ #define isLua(ci) ((ci)->callstatus & CIST_LUA) -- cgit v1.2.3-55-g6feb