diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-05 16:41:24 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-05 16:41:24 -0300 |
commit | 943b8f5b1801c72fee8bf1050919cf1acb600555 (patch) | |
tree | 6bef02079082422a78a933230619867bbb2e00e7 /ldo.h | |
parent | 762d059a13d83eb367238a6115bbb4f5f13fcb49 (diff) | |
download | lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.gz lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.bz2 lua-943b8f5b1801c72fee8bf1050919cf1acb600555.zip |
details
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.h,v 1.31 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 1.32 2001/03/07 18:09:25 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 | */ |
@@ -19,11 +19,14 @@ | |||
19 | #define incr_top {if (L->top == L->stack_last) luaD_checkstack(L, 1); L->top++;} | 19 | #define incr_top {if (L->top == L->stack_last) luaD_checkstack(L, 1); L->top++;} |
20 | 20 | ||
21 | 21 | ||
22 | #define luaD_checkstack(L,n) if (L->stack_last-(n)<=L->top) luaD_stackerror(L) | ||
23 | |||
24 | |||
22 | void luaD_init (lua_State *L, int stacksize); | 25 | void luaD_init (lua_State *L, int stacksize); |
23 | void luaD_adjusttop (lua_State *L, StkId base, int extra); | 26 | void luaD_adjusttop (lua_State *L, StkId base, int extra); |
24 | void luaD_lineHook (lua_State *L, int line, lua_Hook linehook); | 27 | void luaD_lineHook (lua_State *L, int line, lua_Hook linehook); |
25 | void luaD_call (lua_State *L, StkId func, int nResults); | 28 | void luaD_call (lua_State *L, StkId func, int nResults); |
26 | void luaD_checkstack (lua_State *L, int n); | 29 | void luaD_stackerror (lua_State *L); |
27 | 30 | ||
28 | void luaD_error (lua_State *L, const l_char *s); | 31 | void luaD_error (lua_State *L, const l_char *s); |
29 | void luaD_breakrun (lua_State *L, int errcode); | 32 | void luaD_breakrun (lua_State *L, int errcode); |