diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-02 14:24:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-02 14:24:45 -0200 |
commit | 8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4 (patch) | |
tree | 94d59b8fcc1845002f8972f46069140cee7079c0 /ldo.h | |
parent | fe237ad8085f34e89fcd3610a9771215af63f03f (diff) | |
download | lua-8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4.tar.gz lua-8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4.tar.bz2 lua-8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4.zip |
lua_Object is a pointer to the stack (because now the stack doen't move)
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.h,v 1.11 1999/11/25 18:58:51 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 1.12 1999/12/01 19:50:08 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 | */ |
@@ -23,12 +23,6 @@ | |||
23 | #define incr_top {if (L->top == L->stack_last) luaD_checkstack(L, 1); L->top++;} | 23 | #define incr_top {if (L->top == L->stack_last) luaD_checkstack(L, 1); L->top++;} |
24 | 24 | ||
25 | 25 | ||
26 | /* macros to convert from lua_Object to (TObject *) and back */ | ||
27 | |||
28 | #define Address(L, lo) ((lo)+L->stack-1) | ||
29 | #define Ref(L, st) ((st)-L->stack+1) | ||
30 | |||
31 | |||
32 | void luaD_init (lua_State *L); | 26 | void luaD_init (lua_State *L); |
33 | void luaD_adjusttop (lua_State *L, StkId base, int extra); | 27 | void luaD_adjusttop (lua_State *L, StkId base, int extra); |
34 | void luaD_openstack (lua_State *L, StkId pos); | 28 | void luaD_openstack (lua_State *L, StkId pos); |