aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lparser.c b/lparser.c
index bc7d9a4f..502a9b2d 100644
--- a/lparser.c
+++ b/lparser.c
@@ -489,12 +489,14 @@ static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) {
489} 489}
490 490
491 491
492/* 492static void enterlevel (LexState *ls) {
493** Macros to limit the maximum recursion depth while parsing 493 lua_State *L = ls->L;
494*/ 494 L->nCcalls++;
495#define enterlevel(ls) luaE_enterCcall((ls)->L) 495 checklimit(ls->fs, getCcalls(L), LUAI_MAXCCALLS, "C levels");
496}
497
496 498
497#define leavelevel(ls) luaE_exitCcall((ls)->L) 499#define leavelevel(ls) ((ls)->L->nCcalls--)
498 500
499 501
500/* 502/*