ldebug.h
Go to the documentation of this file.
1 /*
2 ** $Id: ldebug.h $
3 ** Auxiliary functions from Debug Interface module
4 ** See Copyright Notice in lua.h
5 */
6 
7 #ifndef ldebug_h
8 #define ldebug_h
9 
10 
11 #include "lstate.h"
12 
13 
14 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
15 
16 
17 /* Active Lua function (given call info) */
18 #define ci_func(ci) (clLvalue(s2v((ci)->func)))
19 
20 
21 #define resethookcount(L) (L->hookcount = L->basehookcount)
22 
23 /*
24 ** mark for entries in 'lineinfo' array that has absolute information in
25 ** 'abslineinfo' array
26 */
27 #define ABSLINEINFO (-0x80)
28 
29 
30 /*
31 ** MAXimum number of successive Instructions WiTHout ABSolute line
32 ** information. (A power of two allows fast divisions.)
33 */
34 #if !defined(MAXIWTHABS)
35 #define MAXIWTHABS 128
36 #endif
37 
38 
39 LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
40 LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
41  StkId *pos);
43  const char *opname);
46  const char *what);
48  const TValue *p2);
50  const TValue *p2,
51  const char *msg);
53  const TValue *p2);
55  const TValue *p2);
56 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
57 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
58  TString *src, int line);
60 LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc);
61 
62 
63 #endif
LUAI_FUNC
#define LUAI_FUNC
Definition: luaconf.h:312
l_noret
#define l_noret
Definition: llimits.h:162
TString
Definition: lobject.h:373
luaG_opinterror
LUAI_FUNC l_noret luaG_opinterror(lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
Definition: ldebug.c:723
lstate.h
luaG_addinfo
const LUAI_FUNC char * luaG_addinfo(lua_State *L, const char *msg, TString *src, int line)
Definition: ldebug.c:753
luaG_tointerror
LUAI_FUNC l_noret luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.c:734
luaG_typeerror
LUAI_FUNC l_noret luaG_typeerror(lua_State *L, const TValue *o, const char *opname)
Definition: ldebug.c:692
StackValue
Definition: lobject.h:146
luaG_callerror
LUAI_FUNC l_noret luaG_callerror(lua_State *L, const TValue *o)
Definition: ldebug.c:698
luaG_errormsg
LUAI_FUNC l_noret luaG_errormsg(lua_State *L)
Definition: ldebug.c:765
luaG_runerror
LUAI_FUNC l_noret luaG_runerror(lua_State *L, const char *fmt,...)
Definition: ldebug.c:778
mqtt_test_proto.msg
msg
Definition: mqtt_test_proto.py:43
luaG_findlocal
const LUAI_FUNC char * luaG_findlocal(lua_State *L, CallInfo *ci, int n, StkId *pos)
Definition: ldebug.c:196
luaG_getfuncline
LUAI_FUNC int luaG_getfuncline(const Proto *f, int pc)
Definition: ldebug.c:83
luaG_traceexec
LUAI_FUNC int luaG_traceexec(lua_State *L, const Instruction *pc)
Definition: ldebug.c:833
lua_State
Definition: lstate.h:304
Proto
Definition: lobject.h:539
Instruction
l_uint32 Instruction
Definition: llimits.h:178
CallInfo
Definition: lstate.h:172
luaG_forerror
LUAI_FUNC l_noret luaG_forerror(lua_State *L, const TValue *o, const char *what)
Definition: ldebug.c:711
luaG_ordererror
LUAI_FUNC l_noret luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.c:742
luaG_concaterror
LUAI_FUNC l_noret luaG_concaterror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.c:717
TValue
Definition: lobject.h:65


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:23