The Battle for Wesnoth  1.15.0+dev
ldebug.h
Go to the documentation of this file.
1 /*
2 ** $Id: ldebug.h,v 2.14.1.1 2017/04/19 17:20:42 roberto Exp $
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 #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1)
17 
18 #define resethookcount(L) (L->hookcount = L->basehookcount)
19 
20 
22  const char *opname);
24  const TValue *p2);
26  const TValue *p2,
27  const char *msg);
29  const TValue *p2);
31  const TValue *p2);
32 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
33 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
34  TString *src, int line);
37 
38 
39 #endif
LUAI_FUNC l_noret luaG_concaterror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.cpp:591
#define LUAI_FUNC
Definition: luaconf.h:282
#define l_noret
Definition: llimits.h:143
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
Definition: debugger.cpp:109
LUAI_FUNC l_noret luaG_runerror(lua_State *L, const char *fmt,...)
Definition: ldebug.cpp:652
LUAI_FUNC l_noret luaG_opinterror(lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
Definition: ldebug.cpp:597
LUAI_FUNC void luaG_traceexec(lua_State *L)
Definition: ldebug.cpp:666
LUAI_FUNC l_noret luaG_typeerror(lua_State *L, const TValue *o, const char *opname)
Definition: ldebug.cpp:585
LUAI_FUNC l_noret luaG_errormsg(lua_State *L)
Definition: ldebug.cpp:640
LUAI_FUNC l_noret luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.cpp:617
LUAI_FUNC l_noret luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2)
Definition: ldebug.cpp:609
LUAI_FUNC const char * luaG_addinfo(lua_State *L, const char *msg, TString *src, int line)
Definition: ldebug.cpp:628