diff options
Diffstat (limited to 'luadebug.h')
| -rw-r--r-- | luadebug.h | 10 |
1 files changed, 7 insertions, 3 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.1 1995/10/17 14:12:45 roberto Exp roberto $ | 5 | ** $Id: luadebug.h,v 1.2 1995/10/26 14:21:56 roberto Exp $ |
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | 8 | ||
| @@ -11,10 +11,14 @@ | |||
| 11 | 11 | ||
| 12 | #include "lua.h" | 12 | #include "lua.h" |
| 13 | 13 | ||
| 14 | typedef void (*lua_LHFunction) (int line); | ||
| 15 | typedef void (*lua_CHFunction) (lua_Object func, char *file, int line); | ||
| 16 | |||
| 14 | lua_Object lua_stackedfunction(int level); | 17 | lua_Object lua_stackedfunction(int level); |
| 15 | void lua_funcinfo (lua_Object func, char **filename, int *linedefined); | 18 | void lua_funcinfo (lua_Object func, char **filename, int *linedefined); |
| 16 | int lua_currentline (lua_Object func); | 19 | int lua_currentline (lua_Object func); |
| 17 | char *getobjname (lua_Object o, char **name); | 20 | char *lua_getobjname (lua_Object o, char **name); |
| 18 | 21 | lua_LHFunction lua_setlinehook (lua_LHFunction hook); | |
| 22 | lua_CHFunction lua_setcallhook (lua_CHFunction hook); | ||
| 19 | 23 | ||
| 20 | #endif | 24 | #endif |
