explicit stack control in the API

This commit is contained in:
Roberto Ierusalimschy
2000-08-29 17:43:28 -03:00
parent 4135f4f586
commit a97f29f154
7 changed files with 27 additions and 16 deletions

6
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.88 2000/08/28 17:57:04 roberto Exp roberto $
** $Id: lapi.c,v 1.89 2000/08/29 14:52:27 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -45,6 +45,10 @@ void luaA_pushobject (lua_State *L, const TObject *o) {
incr_top;
}
int lua_stackspace (lua_State *L) {
return (L->stack_last - L->top);
}
/*