The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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] : 0)
 
#define resethookcount(L)   (L->hookcount = L->basehookcount)
 
#define ci_func(ci)   (clLvalue((ci)->func))
 

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, StkId p1, StkId p2)
 
LUAI_FUNC l_noret luaG_aritherror (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 l_noret luaG_errormsg (lua_State *L)
 

Macro Definition Documentation

#define ci_func (   ci)    (clLvalue((ci)->func))
#define getfuncline (   f,
  pc 
)    (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)

Definition at line 15 of file ldebug.h.

Referenced by currentline(), PrintCode(), and traceexec().

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

Definition at line 13 of file ldebug.h.

Referenced by currentpc(), and traceexec().

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

Definition at line 17 of file ldebug.h.

Referenced by lua_newthread(), lua_sethook(), preinit_state(), and traceexec().

Function Documentation

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

Definition at line 538 of file ldebug.cpp.

References luaG_typeerror(), and luaV_tonumber().

Referenced by luaV_arith().

LUAI_FUNC l_noret luaG_concaterror ( lua_State L,
StkId  p1,
StkId  p2 
)

Definition at line 531 of file ldebug.cpp.

References lua_assert, luaG_typeerror(), ttisnumber, and ttisstring.

Referenced by luaV_concat().

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

Definition at line 546 of file ldebug.cpp.

References luaG_runerror(), and objtypename.

Referenced by luaV_lessequal(), and luaV_lessthan().

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