lua_Object is a pointer to the stack (because now the stack doen't move)

This commit is contained in:
Roberto Ierusalimschy
1999-12-02 14:24:45 -02:00
parent fe237ad808
commit 8223ff473f
7 changed files with 80 additions and 84 deletions

8
ldo.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.h,v 1.11 1999/11/25 18:58:51 roberto Exp roberto $
** $Id: ldo.h,v 1.12 1999/12/01 19:50:08 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -23,12 +23,6 @@
#define incr_top {if (L->top == L->stack_last) luaD_checkstack(L, 1); L->top++;}
/* macros to convert from lua_Object to (TObject *) and back */
#define Address(L, lo) ((lo)+L->stack-1)
#define Ref(L, st) ((st)-L->stack+1)
void luaD_init (lua_State *L);
void luaD_adjusttop (lua_State *L, StkId base, int extra);
void luaD_openstack (lua_State *L, StkId pos);