diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-09-23 10:18:01 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-12 12:29:09 -0300 |
commit | 287b302acb8d925178e9edb800f0a8d18c7d35f6 (patch) | |
tree | bd662481ea995dc8c050324d553146e870434d93 /lparser.c | |
parent | 5d8ce05b3f6fad79e37ed21c1076e47a322472c6 (diff) | |
download | lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.tar.gz lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.tar.bz2 lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.zip |
Revision of stackless implementation
- more organized handling of 'nCcalls'
- comments
- deprecation of 'setcstacklimit'
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -489,11 +489,7 @@ static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) { | |||
489 | } | 489 | } |
490 | 490 | ||
491 | 491 | ||
492 | static void enterlevel (LexState *ls) { | 492 | #define enterlevel(ls) luaE_incCstack(ls->L) |
493 | lua_State *L = ls->L; | ||
494 | L->nCcalls++; | ||
495 | checklimit(ls->fs, getCcalls(L), LUAI_MAXCCALLS, "C levels"); | ||
496 | } | ||
497 | 493 | ||
498 | 494 | ||
499 | #define leavelevel(ls) ((ls)->L->nCcalls--) | 495 | #define leavelevel(ls) ((ls)->L->nCcalls--) |