aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/ldo.h b/ldo.h
index f3f19cd8..9adc6aba 100644
--- a/ldo.h
+++ b/ldo.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.h,v 1.8 1999/10/04 17:51:04 roberto Exp roberto $ 2** $Id: ldo.h,v 1.9 1999/10/14 19:46:57 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*/
@@ -20,26 +20,26 @@
20** macro to increment stack top. 20** macro to increment stack top.
21** There must be always an empty slot at the L->stack.top 21** There must be always an empty slot at the L->stack.top
22*/ 22*/
23#define incr_top { if (L->stack.top >= L->stack.last) luaD_checkstack(1); \ 23#define incr_top { if (L->stack.top >= L->stack.last) luaD_checkstack(L, 1); \
24 L->stack.top++; } 24 L->stack.top++; }
25 25
26 26
27/* macros to convert from lua_Object to (TObject *) and back */ 27/* macros to convert from lua_Object to (TObject *) and back */
28 28
29#define Address(lo) ((lo)+L->stack.stack-1) 29#define Address(L, lo) ((lo)+L->stack.stack-1)
30#define Ref(st) ((st)-L->stack.stack+1) 30#define Ref(L, st) ((st)-L->stack.stack+1)
31 31
32 32
33void luaD_init (void); 33void luaD_init (lua_State *L);
34void luaD_adjusttop (StkId newtop); 34void luaD_adjusttop (lua_State *L, StkId newtop);
35void luaD_openstack (int nelems); 35void luaD_openstack (lua_State *L, int nelems);
36void luaD_lineHook (int line); 36void luaD_lineHook (lua_State *L, int line);
37void luaD_callHook (StkId base, const TProtoFunc *tf, int isreturn); 37void luaD_callHook (lua_State *L, StkId base, const TProtoFunc *tf, int isreturn);
38void luaD_calln (int nArgs, int nResults); 38void luaD_calln (lua_State *L, int nArgs, int nResults);
39void luaD_callTM (const TObject *f, int nParams, int nResults); 39void luaD_callTM (lua_State *L, const TObject *f, int nParams, int nResults);
40int luaD_protectedrun (void); 40int luaD_protectedrun (lua_State *L);
41void luaD_gcIM (const TObject *o); 41void luaD_gcIM (lua_State *L, const TObject *o);
42void luaD_checkstack (int n); 42void luaD_checkstack (lua_State *L, int n);
43 43
44 44
45#endif 45#endif