diff options
Diffstat (limited to 'apps/plugins/lua/ldebug.h')
-rw-r--r-- | apps/plugins/lua/ldebug.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/apps/plugins/lua/ldebug.h b/apps/plugins/lua/ldebug.h index 22226b4096..6445c763ea 100644 --- a/apps/plugins/lua/ldebug.h +++ b/apps/plugins/lua/ldebug.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id$ | 2 | ** $Id: ldebug.h,v 2.7.1.1 2013/04/12 18:48:47 roberto Exp $ |
3 | ** Auxiliary functions from Debug Interface module | 3 | ** Auxiliary functions from Debug Interface module |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -13,21 +13,22 @@ | |||
13 | 13 | ||
14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) |
15 | 15 | ||
16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) | 16 | #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) |
17 | 17 | ||
18 | #define resethookcount(L) (L->hookcount = L->basehookcount) | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) |
19 | 19 | ||
20 | /* Active Lua function (given call info) */ | ||
21 | #define ci_func(ci) (clLvalue((ci)->func)) | ||
20 | 22 | ||
21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, | 23 | |
22 | const char *opname); | 24 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, |
23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); | 25 | const char *opname); |
24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, | 26 | LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
25 | const TValue *p2); | 27 | LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, |
26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, | 28 | const TValue *p2); |
27 | const TValue *p2); | 29 | LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, |
28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); | 30 | const TValue *p2); |
29 | LUAI_FUNC void luaG_errormsg (lua_State *L); | 31 | LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); |
30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); | 32 | LUAI_FUNC l_noret luaG_errormsg (lua_State *L); |
31 | LUAI_FUNC int luaG_checkopenop (Instruction i); | ||
32 | 33 | ||
33 | #endif | 34 | #endif |