summaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 16:41:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 16:41:24 -0300
commit943b8f5b1801c72fee8bf1050919cf1acb600555 (patch)
tree6bef02079082422a78a933230619867bbb2e00e7 /ldo.h
parent762d059a13d83eb367238a6115bbb4f5f13fcb49 (diff)
downloadlua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.gz
lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.bz2
lua-943b8f5b1801c72fee8bf1050919cf1acb600555.zip
details
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ldo.h b/ldo.h
index bf8bbe7f..eda4f526 100644
--- a/ldo.h
+++ b/ldo.h
@@ -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
22void luaD_init (lua_State *L, int stacksize); 25void luaD_init (lua_State *L, int stacksize);
23void luaD_adjusttop (lua_State *L, StkId base, int extra); 26void luaD_adjusttop (lua_State *L, StkId base, int extra);
24void luaD_lineHook (lua_State *L, int line, lua_Hook linehook); 27void luaD_lineHook (lua_State *L, int line, lua_Hook linehook);
25void luaD_call (lua_State *L, StkId func, int nResults); 28void luaD_call (lua_State *L, StkId func, int nResults);
26void luaD_checkstack (lua_State *L, int n); 29void luaD_stackerror (lua_State *L);
27 30
28void luaD_error (lua_State *L, const l_char *s); 31void luaD_error (lua_State *L, const l_char *s);
29void luaD_breakrun (lua_State *L, int errcode); 32void luaD_breakrun (lua_State *L, int errcode);