aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 14:26:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 14:26:14 -0300
commitf76f4cb79d84af4a7be9e0d75553bbe05a3ae90c (patch)
treedd9d1f8f3fb8c69f7617fe5688d7b1178bb7190e /llimits.h
parentabb85fc059a5d6427b9dc36edee1619f2c7a1da8 (diff)
downloadlua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.gz
lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.bz2
lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.zip
new way to control stack overflow, controling only total size of the stack
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llimits.h b/llimits.h
index 5f254f72..c4220d67 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.71 2009/06/08 19:35:59 roberto Exp roberto $ 2** $Id: llimits.h,v 1.72 2009/07/01 16:14:15 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*/
@@ -122,8 +122,8 @@ typedef lu_int32 Instruction;
122#ifndef HARDSTACKTESTS 122#ifndef HARDSTACKTESTS
123#define condmovestack(L) ((void)0) 123#define condmovestack(L) ((void)0)
124#else 124#else
125#define condmovestack(L) /* realloc stack keeping its size */ \ 125/* realloc stack keeping its size */
126 luaD_reallocstack((L), (L)->stacksize - EXTRA_STACK - 1) 126#define condmovestack(L) luaD_reallocstack((L), (L)->stacksize)
127#endif 127#endif
128 128
129#endif 129#endif