The Battle for Wesnoth  1.15.1+dev
Macros | Functions
ldebug.h File Reference
#include "lstate.h"
Include dependency graph for ldebug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define pcRel(pc, p)   (cast(int, (pc) - (p)->code) - 1)
 
#define getfuncline(f, pc)   (((f)->lineinfo) ? (f)->lineinfo[pc] : -1)
 
#define resethookcount(L)   (L->hookcount = L->basehookcount)
 

Functions

LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *opname)
 
LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2)
 
LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
 
LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2)
 
LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2)
 
LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt,...)
 
LUAI_FUNC const char * luaG_addinfo (lua_State *L, const char *msg, TString *src, int line)
 
LUAI_FUNC l_noret luaG_errormsg (lua_State *L)
 
LUAI_FUNC void luaG_traceexec (lua_State *L)
 

Macro Definition Documentation

◆ getfuncline

#define getfuncline (   f,
  pc 
)    (((f)->lineinfo) ? (f)->lineinfo[pc] : -1)

Definition at line 16 of file ldebug.h.

Referenced by currentline(), and luaG_traceexec().

◆ pcRel

#define pcRel (   pc,
  p 
)    (cast(int, (pc) - (p)->code) - 1)

Definition at line 14 of file ldebug.h.

Referenced by currentpc(), and luaG_traceexec().

◆ resethookcount

#define resethookcount (   L)    (L->hookcount = L->basehookcount)

Definition at line 18 of file ldebug.h.

Referenced by lua_newthread(), lua_sethook(), luaG_traceexec(), and preinit_thread().

Function Documentation

◆ luaG_addinfo()

LUAI_FUNC const char* luaG_addinfo ( lua_State L,
const char *  msg,
TString src,
int  line 
)

Definition at line 628 of file ldebug.cpp.

References getstr, LUA_IDSIZE, luaO_chunkid(), and luaO_pushfstring().

Referenced by lexerror(), and luaG_runerror().

◆ luaG_concaterror()

LUAI_FUNC l_noret luaG_concaterror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 591 of file ldebug.cpp.

References cvt2str, luaG_typeerror(), and ttisstring.

Referenced by luaT_trybinTM().

◆ luaG_errormsg()

LUAI_FUNC l_noret luaG_errormsg ( lua_State L)

◆ luaG_opinterror()

LUAI_FUNC l_noret luaG_opinterror ( lua_State L,
const TValue p1,
const TValue p2,
const char *  msg 
)

Definition at line 597 of file ldebug.cpp.

References luaG_typeerror(), and tonumber.

Referenced by luaT_trybinTM().

◆ luaG_ordererror()

LUAI_FUNC l_noret luaG_ordererror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 617 of file ldebug.cpp.

References luaG_runerror(), and luaT_objtypename().

Referenced by luaV_lessequal(), and luaV_lessthan().

◆ luaG_runerror()

LUAI_FUNC l_noret luaG_runerror ( lua_State L,
const char *  fmt,
  ... 
)

◆ luaG_tointerror()

LUAI_FUNC l_noret luaG_tointerror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 609 of file ldebug.cpp.

References luaG_runerror(), tointeger, and varinfo().

Referenced by luaT_trybinTM().

◆ luaG_traceexec()

LUAI_FUNC void luaG_traceexec ( lua_State L)

◆ luaG_typeerror()

LUAI_FUNC l_noret luaG_typeerror ( lua_State L,
const TValue o,
const char *  opname 
)