From 287b302acb8d925178e9edb800f0a8d18c7d35f6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 23 Sep 2020 10:18:01 -0300 Subject: Revision of stackless implementation - more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit' --- lparser.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 502a9b2d..bcdcfb6d 100644 --- a/lparser.c +++ b/lparser.c @@ -489,11 +489,7 @@ static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) { } -static void enterlevel (LexState *ls) { - lua_State *L = ls->L; - L->nCcalls++; - checklimit(ls->fs, getCcalls(L), LUAI_MAXCCALLS, "C levels"); -} +#define enterlevel(ls) luaE_incCstack(ls->L) #define leavelevel(ls) ((ls)->L->nCcalls--) -- cgit v1.2.3-55-g6feb