diff options
Diffstat (limited to 'ldebug.h')
| -rw-r--r-- | ldebug.h | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -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 | |||
| 19 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); | 26 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); |
| 20 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); | 27 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
| 21 | void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2); | 28 | void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2); |
