diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-08 16:35:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-08 16:35:59 -0300 |
commit | 4a67e48611c1ffaa6d474e443c3c89849c8b6e5f (patch) | |
tree | 9eddf37f1a665067b4b88d588cc01b06077e705f /llimits.h | |
parent | 5cdec7d124e46c1409df8033f1b795a996dd00e4 (diff) | |
download | lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.tar.gz lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.tar.bz2 lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.zip |
new macro 'condmovestack' instead of 'condhardstacktests'
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.69 2005/12/27 17:12:00 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.70 2006/09/11 14:07:24 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 | */ |
@@ -120,9 +120,10 @@ typedef lu_int32 Instruction; | |||
120 | ** macro to control inclusion of some hard tests on stack reallocation | 120 | ** macro to control inclusion of some hard tests on stack reallocation |
121 | */ | 121 | */ |
122 | #ifndef HARDSTACKTESTS | 122 | #ifndef HARDSTACKTESTS |
123 | #define condhardstacktests(x) ((void)0) | 123 | #define condmovestack(L) ((void)0) |
124 | #else | 124 | #else |
125 | #define condhardstacktests(x) x | 125 | #define condmovestack(L) /* realloc stack keeping its size */ \ |
126 | luaD_reallocstack((L), (L)->stacksize - EXTRA_STACK - 1) | ||
126 | #endif | 127 | #endif |
127 | 128 | ||
128 | #endif | 129 | #endif |