summaryrefslogtreecommitdiff
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-github-5a3a1fe458a7eab402f5386e4dcb8282c94ff068.tar.gz
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 @@
** LUA - Linguagem para Usuarios de Aplicacao
** Grupo de Tecnologia em Computacao Grafica
** TeCGraf - PUC-Rio
-** $Id: luadebug.h,v 1.2 1995/10/26 14:21:56 roberto Exp $
+** $Id: luadebug.h,v 1.3 1996/01/09 20:22:44 roberto Exp roberto $
*/
@@ -14,11 +14,16 @@
typedef void (*lua_LHFunction) (int line);
typedef void (*lua_CHFunction) (lua_Object func, char *file, int line);
-lua_Object lua_stackedfunction(int level);
+lua_Object lua_stackedfunction (int level);
void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
int lua_currentline (lua_Object func);
char *lua_getobjname (lua_Object o, char **name);
lua_LHFunction lua_setlinehook (lua_LHFunction hook);
lua_CHFunction lua_setcallhook (lua_CHFunction hook);
+lua_Object lua_getlocal (lua_Object func, int local_number, char **name);
+int lua_setlocal (lua_Object func, int local_number);
+
+extern int lua_debug;
+
#endif