aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ldo.h b/ldo.h
index fc13692c..8e2e026b 100644
--- a/ldo.h
+++ b/ldo.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.h,v 1.58 2003/08/27 21:01:44 roberto Exp roberto $ 2** $Id: ldo.h,v 2.1 2003/12/10 12:13:36 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*/
@@ -38,13 +38,19 @@
38#define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n))) 38#define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n)))
39 39
40 40
41/* results from luaD_precall */
42#define PCRLUA 0 /* initiated a call to a Lua function */
43#define PCRC 1 /* did a call to a C function */
44#define PCRYIELD 2 /* C funtion yielded */
45
46
41/* type of protected functions, to be ran by `runprotected' */ 47/* type of protected functions, to be ran by `runprotected' */
42typedef void (*Pfunc) (lua_State *L, void *ud); 48typedef void (*Pfunc) (lua_State *L, void *ud);
43 49
44void luaD_resetprotection (lua_State *L); 50void luaD_resetprotection (lua_State *L);
45int luaD_protectedparser (lua_State *L, ZIO *z, const char *name); 51int luaD_protectedparser (lua_State *L, ZIO *z, const char *name);
46void luaD_callhook (lua_State *L, int event, int line); 52void luaD_callhook (lua_State *L, int event, int line);
47StkId luaD_precall (lua_State *L, StkId func); 53int luaD_precall (lua_State *L, StkId func, int nresults);
48void luaD_call (lua_State *L, StkId func, int nResults); 54void luaD_call (lua_State *L, StkId func, int nResults);
49int luaD_pcall (lua_State *L, Pfunc func, void *u, 55int luaD_pcall (lua_State *L, Pfunc func, void *u,
50 ptrdiff_t oldtop, ptrdiff_t ef); 56 ptrdiff_t oldtop, ptrdiff_t ef);