summaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-08 15:21:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-08 15:21:33 -0300
commit39b2d58c39fd0cd554b27ed071926bc439338964 (patch)
tree6855ede1b0e908439476e54396f94ae9ad275269 /ldebug.h
parentd2d24f09713cfecf59a7688c45a3863a35f09254 (diff)
downloadlua-github-39b2d58c39fd0cd554b27ed071926bc439338964.tar.gz
new interface for debug hooks
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 @@
/*
-** $Id: ldebug.h,v 1.22 2002/06/18 15:19:27 roberto Exp roberto $
+** $Id: ldebug.h,v 1.23 2002/06/24 15:07:21 roberto Exp roberto $
** Auxiliary functions from Debug Interface module
** See Copyright Notice in lua.h
*/
@@ -16,6 +16,13 @@
#define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
+#define resethookcount(L) \
+ (L->hookcount = (1 << lua_getmaskcount(L->hookmask)) >> 1)
+
+#define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond))
+#define allowhook(L) ((L->hookmask) & 1)
+
+
void luaG_typeerror (lua_State *L, const TObject *o, const char *opname);
void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2);