diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-22 16:02:39 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-22 16:02:39 +0800 |
| commit | a51a728d847e790329e41c75928a81630200b63f (patch) | |
| tree | 8cc8e93a7863649499537366acecb41525022a57 /src/lua/llimits.h | |
| parent | f6e603cc5bef133e5e368a81f677bea92bc405b5 (diff) | |
| download | yuescript-a51a728d847e790329e41c75928a81630200b63f.tar.gz yuescript-a51a728d847e790329e41c75928a81630200b63f.tar.bz2 yuescript-a51a728d847e790329e41c75928a81630200b63f.zip | |
update Lua, fix cmakelists.txt.
Diffstat (limited to '')
| -rw-r--r-- | src/lua/llimits.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lua/llimits.h b/src/lua/llimits.h index 48c97f9..a76c13e 100644 --- a/src/lua/llimits.h +++ b/src/lua/llimits.h | |||
| @@ -235,6 +235,17 @@ typedef l_uint32 Instruction; | |||
| 235 | 235 | ||
| 236 | 236 | ||
| 237 | /* | 237 | /* |
| 238 | ** Maximum depth for nested C calls, syntactical nested non-terminals, | ||
| 239 | ** and other features implemented through recursion in C. (Value must | ||
| 240 | ** fit in a 16-bit unsigned integer. It must also be compatible with | ||
| 241 | ** the size of the C stack.) | ||
| 242 | */ | ||
| 243 | #if !defined(LUAI_MAXCCALLS) | ||
| 244 | #define LUAI_MAXCCALLS 200 | ||
| 245 | #endif | ||
| 246 | |||
| 247 | |||
| 248 | /* | ||
| 238 | ** macros that are executed whenever program enters the Lua core | 249 | ** macros that are executed whenever program enters the Lua core |
| 239 | ** ('lua_lock') and leaves the core ('lua_unlock') | 250 | ** ('lua_lock') and leaves the core ('lua_unlock') |
| 240 | */ | 251 | */ |
| @@ -344,7 +355,7 @@ typedef l_uint32 Instruction; | |||
| 344 | #else | 355 | #else |
| 345 | /* realloc stack keeping its size */ | 356 | /* realloc stack keeping its size */ |
| 346 | #define condmovestack(L,pre,pos) \ | 357 | #define condmovestack(L,pre,pos) \ |
| 347 | { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_, 0); pos; } | 358 | { int sz_ = stacksize(L); pre; luaD_reallocstack((L), sz_, 0); pos; } |
| 348 | #endif | 359 | #endif |
| 349 | 360 | ||
| 350 | #if !defined(HARDMEMTESTS) | 361 | #if !defined(HARDMEMTESTS) |
