From f96497397addca22f22a6ba6eeabc906be43f16b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 29 Jun 2017 12:06:44 -0300 Subject: new type 'StackValue' for stack elements (we may want to put extra info there in the future) --- lfunc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lfunc.h') diff --git a/lfunc.h b/lfunc.h index eca83e4f..b7d75869 100644 --- a/lfunc.h +++ b/lfunc.h @@ -1,5 +1,5 @@ /* -** $Id: lfunc.h,v 2.16 2017/04/11 18:41:09 roberto Exp roberto $ +** $Id: lfunc.h,v 2.17 2017/05/04 13:32:01 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -32,6 +32,9 @@ #define upisopen(up) ((up)->v != &(up)->u.value) +#define uplevel(up) check_exp(upisopen(up), cast(StkId, (up)->v)) + + /* ** maximum number of misses before giving up the cache of closures ** in prototypes -- cgit v1.2.3-55-g6feb