diff options
Diffstat (limited to 'ldo.h')
| -rw-r--r-- | ldo.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.h,v 1.57 2003/08/25 19:51:54 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 1.58 2003/08/27 21:01:44 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 | */ |
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | #define luaD_checkstack(L,n) \ | 26 | #define luaD_checkstack(L,n) \ |
| 27 | if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TObject)) \ | 27 | if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \ |
| 28 | luaD_growstack(L, n); \ | 28 | luaD_growstack(L, n); \ |
| 29 | else condhardstacktests(luaD_reallocstack(L, L->stacksize)); | 29 | else condhardstacktests(luaD_reallocstack(L, L->stacksize)); |
| 30 | 30 | ||
| @@ -32,7 +32,7 @@ | |||
| 32 | #define incr_top(L) {luaD_checkstack(L,1); L->top++;} | 32 | #define incr_top(L) {luaD_checkstack(L,1); L->top++;} |
| 33 | 33 | ||
| 34 | #define savestack(L,p) ((char *)(p) - (char *)L->stack) | 34 | #define savestack(L,p) ((char *)(p) - (char *)L->stack) |
| 35 | #define restorestack(L,n) ((TObject *)((char *)L->stack + (n))) | 35 | #define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) |
| 36 | 36 | ||
| 37 | #define saveci(L,p) ((char *)(p) - (char *)L->base_ci) | 37 | #define saveci(L,p) ((char *)(p) - (char *)L->base_ci) |
| 38 | #define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n))) | 38 | #define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n))) |
