File indexing completed on 2026-11-07 10:37:55
0001
0002
0003
0004
0005
0006
0007 #ifndef ldebug_h
0008 #define ldebug_h
0009
0010
0011 #include "lstate.h"
0012
0013
0014 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
0015
0016
0017
0018 #define ci_func(ci) (clLvalue(s2v((ci)->func.p)))
0019
0020
0021 #define resethookcount(L) (L->hookcount = L->basehookcount)
0022
0023
0024
0025
0026
0027 #define ABSLINEINFO (-0x80)
0028
0029
0030
0031
0032
0033
0034 #if !defined(MAXIWTHABS)
0035 #define MAXIWTHABS 128
0036 #endif
0037
0038
0039 LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
0040 LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
0041 StkId *pos);
0042 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
0043 const char *opname);
0044 LUAI_FUNC l_noret luaG_callerror (lua_State *L, const TValue *o);
0045 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
0046 const char *what);
0047 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
0048 const TValue *p2);
0049 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
0050 const TValue *p2,
0051 const char *msg);
0052 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
0053 const TValue *p2);
0054 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
0055 const TValue *p2);
0056 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
0057 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
0058 TString *src, int line);
0059 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
0060 LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc);
0061 LUAI_FUNC int luaG_tracecall (lua_State *L);
0062
0063
0064 #endif