aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-08 16:35:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-08 16:35:59 -0300
commit4a67e48611c1ffaa6d474e443c3c89849c8b6e5f (patch)
tree9eddf37f1a665067b4b88d588cc01b06077e705f /ldo.h
parent5cdec7d124e46c1409df8033f1b795a996dd00e4 (diff)
downloadlua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.tar.gz
lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.tar.bz2
lua-4a67e48611c1ffaa6d474e443c3c89849c8b6e5f.zip
new macro 'condmovestack' instead of 'condhardstacktests'
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldo.h b/ldo.h
index 57695b0a..3e0d50a8 100644
--- a/ldo.h
+++ b/ldo.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.h,v 2.11 2009/03/10 17:14:37 roberto Exp roberto $ 2** $Id: ldo.h,v 2.12 2009/04/17 14:28:06 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*/
@@ -15,8 +15,7 @@
15 15
16#define luaD_checkstack(L,n) \ 16#define luaD_checkstack(L,n) \
17 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)) \
18 luaD_growstack(L, n); \ 18 luaD_growstack(L, n); else condmovestack(L);
19 else condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1));
20 19
21 20
22#define incr_top(L) {L->top++; luaD_checkstack(L,0);} 21#define incr_top(L) {L->top++; luaD_checkstack(L,0);}