aboutsummaryrefslogtreecommitdiff
path: root/src/lua/ldebug.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lua/ldebug.h (renamed from src/lua-5.3/ldebug.h)18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lua-5.3/ldebug.h b/src/lua/ldebug.h
index 8cea0ee..1fe0efa 100644
--- a/src/lua-5.3/ldebug.h
+++ b/src/lua/ldebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.h,v 2.14.1.1 2017/04/19 17:20:42 roberto Exp $ 2** $Id: ldebug.h $
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*/
@@ -11,15 +11,23 @@
11#include "lstate.h" 11#include "lstate.h"
12 12
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
16#define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1)
17 15
18#define resethookcount(L) (L->hookcount = L->basehookcount) 16#define resethookcount(L) (L->hookcount = L->basehookcount)
19 17
18/*
19** mark for entries in 'lineinfo' array that has absolute information in
20** 'abslineinfo' array
21*/
22#define ABSLINEINFO (-0x80)
20 23
24LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
25LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
26 StkId *pos);
21LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 27LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
22 const char *opname); 28 const char *opname);
29LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
30 const char *what);
23LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, 31LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
24 const TValue *p2); 32 const TValue *p2);
25LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, 33LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
@@ -33,7 +41,7 @@ LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
33LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg, 41LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
34 TString *src, int line); 42 TString *src, int line);
35LUAI_FUNC l_noret luaG_errormsg (lua_State *L); 43LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
36LUAI_FUNC void luaG_traceexec (lua_State *L); 44LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc);
37 45
38 46
39#endif 47#endif