aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-18 09:01:55 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-18 09:01:55 -0200
commit43013b39cc28e873e18207e8e7259b6b90fed06b (patch)
tree3c2a9c520a01086df28c8f0d1ef6d9b5069fa451 /ldebug.h
parent94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63 (diff)
downloadlua-43013b39cc28e873e18207e8e7259b6b90fed06b.tar.gz
lua-43013b39cc28e873e18207e8e7259b6b90fed06b.tar.bz2
lua-43013b39cc28e873e18207e8e7259b6b90fed06b.zip
new representation for hooks (to allow asynchronous calls to sethook)
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);