The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ldebug.h
Go to the documentation of this file.
1 /*
2 ** Auxiliary functions from Debug Interface module
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef ldebug_h
7 #define ldebug_h
8 
9 
10 #include "lstate.h"
11 
12 
13 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
14 
15 #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
16 
17 #define resethookcount(L) (L->hookcount = L->basehookcount)
18 
19 /* Active Lua function (given call info) */
20 #define ci_func(ci) (clLvalue((ci)->func))
21 
22 
24  const char *opname);
27  const TValue *p2);
29  const TValue *p2);
30 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
32 
33 #endif
#define LUAI_FUNC
Definition: luaconf.h:187
#define l_noret
Definition: llimits.h:108
LUAI_FUNC l_noret luaG_concaterror(lua_State *L, StkId p1, StkId p2)
Definition: ldebug.cpp:531
LUAI_FUNC l_noret luaG_runerror(lua_State *L, const char *fmt,...)
Definition: ldebug.cpp:585
LUAI_FUNC l_noret luaG_typeerror(lua_State *L, const TValue *o, const char *opname)
Definition: ldebug.cpp:512
LUAI_FUNC l_noret luaG_errormsg(lua_State *L)
Definition: ldebug.cpp:572
LUAI_FUNC l_noret luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.cpp:546
LUAI_FUNC l_noret luaG_aritherror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.cpp:538