diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-10 09:11:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-10 09:11:07 -0300 |
commit | 6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3 (patch) | |
tree | f6e3f9fb0bdbf3169426798b12391f8355d52432 /ldebug.h | |
parent | 8e1e61860643baeb443efcdbf51bc25b0c006a88 (diff) | |
download | lua-6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3.tar.gz lua-6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3.tar.bz2 lua-6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3.zip |
line trace uses `savedpc' to save last `pc' seen
Diffstat (limited to 'ldebug.h')
-rw-r--r-- | ldebug.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.h,v 1.17 2002/03/19 12:45:25 roberto Exp roberto $ | 2 | ** $Id: ldebug.h,v 1.18 2002/03/25 17:47:14 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 | */ |
@@ -12,6 +12,8 @@ | |||
12 | #include "luadebug.h" | 12 | #include "luadebug.h" |
13 | 13 | ||
14 | 14 | ||
15 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) | ||
16 | |||
15 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); | 17 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); |
16 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); | 18 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
17 | void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2); | 19 | void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2); |