diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-18 09:01:55 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-18 09:01:55 -0200 |
commit | 43013b39cc28e873e18207e8e7259b6b90fed06b (patch) | |
tree | 3c2a9c520a01086df28c8f0d1ef6d9b5069fa451 /ldebug.h | |
parent | 94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63 (diff) | |
download | lua-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.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 | ||
21 | void luaG_inithooks (lua_State *L); | ||
24 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); | 22 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); |
25 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); | 23 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
26 | void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2); | 24 | void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2); |