summaryrefslogtreecommitdiff
path: root/src/ldo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldo.h')
-rw-r--r--src/ldo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ldo.h b/src/ldo.h
index d4072b60..ff5b652c 100644
--- a/src/ldo.h
+++ b/src/ldo.h
@@ -1,5 +1,5 @@
/*
-** $Id: ldo.h,v 2.2 2004/05/14 19:25:09 roberto Exp $
+** $Id: ldo.h,v 2.3 2004/09/08 14:23:09 roberto Exp $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -17,7 +17,7 @@
** macro to control inclusion of some hard tests on stack reallocation
*/
#ifndef HARDSTACKTESTS
-#define condhardstacktests(x) { /* empty */ }
+#define condhardstacktests(x) ((void)0)
#else
#define condhardstacktests(x) x
#endif
@@ -26,7 +26,7 @@
#define luaD_checkstack(L,n) \
if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \
luaD_growstack(L, n); \
- else condhardstacktests(luaD_reallocstack(L, L->stacksize));
+ else condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1));
#define incr_top(L) {luaD_checkstack(L,1); L->top++;}