aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-10 09:11:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-10 09:11:07 -0300
commit6c7334a9ac4b424a4fd52bfeb4d674bc7cfa4eb3 (patch)
treef6e3f9fb0bdbf3169426798b12391f8355d52432 /ldebug.h
parent8e1e61860643baeb443efcdbf51bc25b0c006a88 (diff)
downloadlua-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldebug.h b/ldebug.h
index 36b866df..4590aeba 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -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
15void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); 17void luaG_typeerror (lua_State *L, const TObject *o, const char *opname);
16void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 18void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
17void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2); 19void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2);