1 /* $NetBSD: ldebug.h,v 1.1.1.2 2012/03/15 00:08:14 alnsn Exp $ */
4 ** $Id: ldebug.h,v 1.1.1.2 2012/03/15 00:08:14 alnsn Exp $
5 ** Auxiliary functions from Debug Interface module
6 ** See Copyright Notice in lua.h
16 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
18 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
20 #define resethookcount(L) (L->hookcount = L->basehookcount)
23 LUAI_FUNC
void luaG_typeerror (lua_State
*L
, const TValue
*o
,
25 LUAI_FUNC
void luaG_concaterror (lua_State
*L
, StkId p1
, StkId p2
);
26 LUAI_FUNC
void luaG_aritherror (lua_State
*L
, const TValue
*p1
,
28 LUAI_FUNC
int luaG_ordererror (lua_State
*L
, const TValue
*p1
,
30 LUAI_FUNC
void luaG_runerror (lua_State
*L
, const char *fmt
, ...);
31 LUAI_FUNC
void luaG_errormsg (lua_State
*L
);
32 LUAI_FUNC
int luaG_checkcode (const Proto
*pt
);
33 LUAI_FUNC
int luaG_checkopenop (Instruction i
);