diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 14:26:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 14:26:14 -0300 |
commit | f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c (patch) | |
tree | dd9d1f8f3fb8c69f7617fe5688d7b1178bb7190e /llimits.h | |
parent | abb85fc059a5d6427b9dc36edee1619f2c7a1da8 (diff) | |
download | lua-github-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.gz |
new way to control stack overflow, controling only total size of the stack
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.71 2009/06/08 19:35:59 roberto Exp roberto $ +** $Id: llimits.h,v 1.72 2009/07/01 16:14:15 roberto Exp roberto $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -122,8 +122,8 @@ typedef lu_int32 Instruction; #ifndef HARDSTACKTESTS #define condmovestack(L) ((void)0) #else -#define condmovestack(L) /* realloc stack keeping its size */ \ - luaD_reallocstack((L), (L)->stacksize - EXTRA_STACK - 1) +/* realloc stack keeping its size */ +#define condmovestack(L) luaD_reallocstack((L), (L)->stacksize) #endif #endif |