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 /luaconf.h | |
| 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 'luaconf.h')
| -rw-r--r-- | luaconf.h | 15 |
1 files changed, 0 insertions, 15 deletions
| @@ -36,21 +36,6 @@ | |||
| 36 | ** ===================================================================== | 36 | ** ===================================================================== |
| 37 | */ | 37 | */ |
| 38 | 38 | ||
| 39 | /* >>> move back to llimits.h | ||
| 40 | @@ LUAI_MAXCCALLS defines the maximum depth for nested calls and | ||
| 41 | ** also limits the maximum depth of other recursive algorithms in | ||
| 42 | ** the implementation, such as syntactic analysis. A value too | ||
| 43 | ** large may allow the interpreter to crash (C-stack overflow). | ||
| 44 | ** The default value seems ok for regular machines, but may be | ||
| 45 | ** too high for restricted hardware. | ||
| 46 | ** The test file 'cstack.lua' may help finding a good limit. | ||
| 47 | ** (It will crash with a limit too high.) | ||
| 48 | */ | ||
| 49 | #if !defined(LUAI_MAXCCALLS) | ||
| 50 | #define LUAI_MAXCCALLS 200 | ||
| 51 | #endif | ||
| 52 | |||
| 53 | |||
| 54 | /* | 39 | /* |
| 55 | @@ LUA_USE_C89 controls the use of non-ISO-C89 features. | 40 | @@ LUA_USE_C89 controls the use of non-ISO-C89 features. |
| 56 | ** Define it if you want Lua to avoid the use of a few C99 features | 41 | ** Define it if you want Lua to avoid the use of a few C99 features |
