diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-07 16:10:27 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-07 16:10:27 -0200 |
commit | 5a3a1fe458a7eab402f5386e4dcb8282c94ff068 (patch) | |
tree | fc315159d0b00d3e726c0a538e40b6acdaa3e013 /luadebug.h | |
parent | 56fb06b6f5eaea4f3dba32af1cc476a99b678497 (diff) | |
download | lua-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.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |