aboutsummaryrefslogtreecommitdiff
path: root/luadebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'luadebug.h')
-rw-r--r--luadebug.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/luadebug.h b/luadebug.h
index 876e45f0..157d1402 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.3 1996/01/09 20:22:44 roberto Exp roberto $ 5** $Id: luadebug.h,v 1.4 1996/02/07 18:10:27 roberto Exp roberto $
6*/ 6*/
7 7
8 8
@@ -11,18 +11,20 @@
11 11
12#include "lua.h" 12#include "lua.h"
13 13
14typedef lua_Object lua_Function;
15
14typedef void (*lua_LHFunction) (int line); 16typedef void (*lua_LHFunction) (int line);
15typedef void (*lua_CHFunction) (lua_Object func, char *file, int line); 17typedef void (*lua_CHFunction) (lua_Function func, char *file, int line);
16 18
17lua_Object lua_stackedfunction (int level); 19lua_Function lua_stackedfunction (int level);
18void lua_funcinfo (lua_Object func, char **filename, int *linedefined); 20void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
19int lua_currentline (lua_Object func); 21int lua_currentline (lua_Function func);
20char *lua_getobjname (lua_Object o, char **name); 22char *lua_getobjname (lua_Object o, char **name);
21lua_LHFunction lua_setlinehook (lua_LHFunction hook); 23lua_LHFunction lua_setlinehook (lua_LHFunction hook);
22lua_CHFunction lua_setcallhook (lua_CHFunction hook); 24lua_CHFunction lua_setcallhook (lua_CHFunction hook);
23 25
24lua_Object lua_getlocal (lua_Object func, int local_number, char **name); 26lua_Object lua_getlocal (lua_Function func, int local_number, char **name);
25int lua_setlocal (lua_Object func, int local_number); 27int lua_setlocal (lua_Function func, int local_number);
26 28
27extern int lua_debug; 29extern int lua_debug;
28 30