summaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-24 13:15:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-24 13:15:49 -0300
commit98296f6b45208e32a83dcb582b3a37b406289d85 (patch)
tree777b65e4a8a6da1d5f907ec5d4d2e6df5a3e9ae6 /ldo.h
parent23b79c5945023a661754e45c58595f89c84d4800 (diff)
downloadlua-98296f6b45208e32a83dcb582b3a37b406289d85.tar.gz
lua-98296f6b45208e32a83dcb582b3a37b406289d85.tar.bz2
lua-98296f6b45208e32a83dcb582b3a37b406289d85.zip
some bugs related to stack reallocation
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/ldo.h b/ldo.h
index 574005a3..5aa65480 100644
--- a/ldo.h
+++ b/ldo.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.h,v 2.5 2005/08/22 18:54:49 roberto Exp roberto $ 2** $Id: ldo.h,v 2.6 2005/08/22 19:58:29 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -13,16 +13,6 @@
13#include "lzio.h" 13#include "lzio.h"
14 14
15 15
16/*
17** macro to control inclusion of some hard tests on stack reallocation
18*/
19#ifndef HARDSTACKTESTS
20#define condhardstacktests(x) ((void)0)
21#else
22#define condhardstacktests(x) x
23#endif
24
25
26#define luaD_checkstack(L,n) \ 16#define luaD_checkstack(L,n) \
27 if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \ 17 if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \
28 luaD_growstack(L, n); \ 18 luaD_growstack(L, n); \