diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-26 17:46:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-26 17:46:10 -0300 |
commit | 81215cd59f58923ae9807d34f1dd46a51f400e4b (patch) | |
tree | 9317d562ae3ea5d54cd5487b220f6e0a20c259a3 /llimits.h | |
parent | 0b9b53e21c30fff06ae39abc00a3c43ab5a18596 (diff) | |
download | lua-81215cd59f58923ae9807d34f1dd46a51f400e4b.tar.gz lua-81215cd59f58923ae9807d34f1dd46a51f400e4b.tar.bz2 lua-81215cd59f58923ae9807d34f1dd46a51f400e4b.zip |
simpler way to control stack overflow
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.40 2002/03/14 18:01:52 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.41 2002/03/18 18:16:16 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -101,9 +101,15 @@ union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; }; | |||
101 | typedef unsigned long Instruction; | 101 | typedef unsigned long Instruction; |
102 | 102 | ||
103 | 103 | ||
104 | /* maximum size for the Lua stack */ | 104 | /* maximum depth for calls */ |
105 | #ifndef LUA_MAXSTACK | 105 | #ifndef LUA_MAXCALLS |
106 | #define LUA_MAXSTACK 14000 | 106 | #define LUA_MAXCALLS 2048 |
107 | #endif | ||
108 | |||
109 | |||
110 | /* maximum size for the C stack */ | ||
111 | #ifndef LUA_MAXCSTACK | ||
112 | #define LUA_MAXCSTACK 2048 | ||
107 | #endif | 113 | #endif |
108 | 114 | ||
109 | 115 | ||