aboutsummaryrefslogtreecommitdiff
path: root/luadebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-07 16:10:27 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-07 16:10:27 -0200
commit5a3a1fe458a7eab402f5386e4dcb8282c94ff068 (patch)
treefc315159d0b00d3e726c0a538e40b6acdaa3e013 /luadebug.h
parent56fb06b6f5eaea4f3dba32af1cc476a99b678497 (diff)
downloadlua-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.tar.gz
lua-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.tar.bz2
lua-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.zip
debug interface functions to manipulated local variables:
"lua_getlocal" and "lua_setlocal".
Diffstat (limited to 'luadebug.h')
-rw-r--r--luadebug.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/luadebug.h b/luadebug.h
index 9a702040..876e45f0 100644
--- a/luadebug.h
+++ b/luadebug.h
@@ -2,7 +2,7 @@
2** LUA - Linguagem para Usuarios de Aplicacao 2** LUA - Linguagem para Usuarios de Aplicacao
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: luadebug.h,v 1.2 1995/10/26 14:21:56 roberto Exp $ 5** $Id: luadebug.h,v 1.3 1996/01/09 20:22:44 roberto Exp roberto $
6*/ 6*/
7 7
8 8
@@ -14,11 +14,16 @@
14typedef void (*lua_LHFunction) (int line); 14typedef void (*lua_LHFunction) (int line);
15typedef void (*lua_CHFunction) (lua_Object func, char *file, int line); 15typedef void (*lua_CHFunction) (lua_Object func, char *file, int line);
16 16
17lua_Object lua_stackedfunction(int level); 17lua_Object lua_stackedfunction (int level);
18void lua_funcinfo (lua_Object func, char **filename, int *linedefined); 18void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
19int lua_currentline (lua_Object func); 19int lua_currentline (lua_Object func);
20char *lua_getobjname (lua_Object o, char **name); 20char *lua_getobjname (lua_Object o, char **name);
21lua_LHFunction lua_setlinehook (lua_LHFunction hook); 21lua_LHFunction lua_setlinehook (lua_LHFunction hook);
22lua_CHFunction lua_setcallhook (lua_CHFunction hook); 22lua_CHFunction lua_setcallhook (lua_CHFunction hook);
23 23
24lua_Object lua_getlocal (lua_Object func, int local_number, char **name);
25int lua_setlocal (lua_Object func, int local_number);
26
27extern int lua_debug;
28
24#endif 29#endif