aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.h')
-rw-r--r--ldebug.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ldebug.h b/ldebug.h
index 764b39a9..0849a302 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.h,v 1.22 2002/06/18 15:19:27 roberto Exp roberto $ 2** $Id: ldebug.h,v 1.23 2002/06/24 15:07:21 roberto Exp roberto $
3** Auxiliary functions from Debug Interface module 3** Auxiliary functions from Debug Interface module
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,6 +16,13 @@
16 16
17#define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17#define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
18 18
19#define resethookcount(L) \
20 (L->hookcount = (1 << lua_getmaskcount(L->hookmask)) >> 1)
21
22#define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond))
23#define allowhook(L) ((L->hookmask) & 1)
24
25
19void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); 26void luaG_typeerror (lua_State *L, const TObject *o, const char *opname);
20void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 27void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
21void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2); 28void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2);