diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.88 2000/08/28 17:57:04 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.89 2000/08/29 14:52:27 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -45,6 +45,10 @@ void luaA_pushobject (lua_State *L, const TObject *o) { | |||
45 | incr_top; | 45 | incr_top; |
46 | } | 46 | } |
47 | 47 | ||
48 | int lua_stackspace (lua_State *L) { | ||
49 | return (L->stack_last - L->top); | ||
50 | } | ||
51 | |||
48 | 52 | ||
49 | 53 | ||
50 | /* | 54 | /* |