diff options
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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' */ |
42 | typedef void (*Pfunc) (lua_State *L, void *ud); | 48 | typedef void (*Pfunc) (lua_State *L, void *ud); |
43 | 49 | ||
44 | void luaD_resetprotection (lua_State *L); | 50 | void luaD_resetprotection (lua_State *L); |
45 | int luaD_protectedparser (lua_State *L, ZIO *z, const char *name); | 51 | int luaD_protectedparser (lua_State *L, ZIO *z, const char *name); |
46 | void luaD_callhook (lua_State *L, int event, int line); | 52 | void luaD_callhook (lua_State *L, int event, int line); |
47 | StkId luaD_precall (lua_State *L, StkId func); | 53 | int luaD_precall (lua_State *L, StkId func, int nresults); |
48 | void luaD_call (lua_State *L, StkId func, int nResults); | 54 | void luaD_call (lua_State *L, StkId func, int nResults); |
49 | int luaD_pcall (lua_State *L, Pfunc func, void *u, | 55 | int luaD_pcall (lua_State *L, Pfunc func, void *u, |
50 | ptrdiff_t oldtop, ptrdiff_t ef); | 56 | ptrdiff_t oldtop, ptrdiff_t ef); |