aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.h')
-rw-r--r--ldebug.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/ldebug.h b/ldebug.h
index e0d0a097..417bd47d 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.h,v 1.30 2002/08/12 17:23:12 roberto Exp roberto $ 2** $Id: ldebug.h,v 1.31 2002/08/20 20:03:05 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*/
@@ -15,12 +15,10 @@
15 15
16#define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 16#define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
17 17
18#define resethookcount(L) (L->hookcount = lua_getmaskcount(L->hookmask)) 18#define resethookcount(L) (L->hookcount = L->basehookcount)
19
20#define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond))
21#define allowhook(L) ((L->hookmask) & 1)
22 19
23 20
21void luaG_inithooks (lua_State *L);
24void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); 22void luaG_typeerror (lua_State *L, const TObject *o, const char *opname);
25void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 23void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
26void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2); 24void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2);