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-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.h | 9 |
1 files changed, 7 insertions, 2 deletions
| @@ -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 @@ | |||
| 14 | typedef void (*lua_LHFunction) (int line); | 14 | typedef void (*lua_LHFunction) (int line); |
| 15 | typedef void (*lua_CHFunction) (lua_Object func, char *file, int line); | 15 | typedef void (*lua_CHFunction) (lua_Object func, char *file, int line); |
| 16 | 16 | ||
| 17 | lua_Object lua_stackedfunction(int level); | 17 | lua_Object lua_stackedfunction (int level); |
| 18 | void lua_funcinfo (lua_Object func, char **filename, int *linedefined); | 18 | void lua_funcinfo (lua_Object func, char **filename, int *linedefined); |
| 19 | int lua_currentline (lua_Object func); | 19 | int lua_currentline (lua_Object func); |
| 20 | char *lua_getobjname (lua_Object o, char **name); | 20 | char *lua_getobjname (lua_Object o, char **name); |
| 21 | lua_LHFunction lua_setlinehook (lua_LHFunction hook); | 21 | lua_LHFunction lua_setlinehook (lua_LHFunction hook); |
| 22 | lua_CHFunction lua_setcallhook (lua_CHFunction hook); | 22 | lua_CHFunction lua_setcallhook (lua_CHFunction hook); |
| 23 | 23 | ||
| 24 | lua_Object lua_getlocal (lua_Object func, int local_number, char **name); | ||
| 25 | int lua_setlocal (lua_Object func, int local_number); | ||
| 26 | |||
| 27 | extern int lua_debug; | ||
| 28 | |||
| 24 | #endif | 29 | #endif |
