Mercurial > vba-clojure
diff src/lua/ldebug.h @ 11:27763b933818
raise lua sources up one level
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 11:07:39 -0600 |
parents | src/lua/src/ldebug.h@f9f4f1b99eed |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/lua/ldebug.h Sat Mar 03 11:07:39 2012 -0600 1.3 @@ -0,0 +1,33 @@ 1.4 +/* 1.5 +** $Id: ldebug.h,v 2.3.1.1 2007/12/27 13:02:25 roberto Exp $ 1.6 +** Auxiliary functions from Debug Interface module 1.7 +** See Copyright Notice in lua.h 1.8 +*/ 1.9 + 1.10 +#ifndef ldebug_h 1.11 +#define ldebug_h 1.12 + 1.13 + 1.14 +#include "lstate.h" 1.15 + 1.16 + 1.17 +#define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 1.18 + 1.19 +#define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 1.20 + 1.21 +#define resethookcount(L) (L->hookcount = L->basehookcount) 1.22 + 1.23 + 1.24 +LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 1.25 + const char *opname); 1.26 +LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 1.27 +LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 1.28 + const TValue *p2); 1.29 +LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 1.30 + const TValue *p2); 1.31 +LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 1.32 +LUAI_FUNC void luaG_errormsg (lua_State *L); 1.33 +LUAI_FUNC int luaG_checkcode (const Proto *pt); 1.34 +LUAI_FUNC int luaG_checkopenop (Instruction i); 1.35 + 1.36 +#endif