Imported from ../lua-3.2.tar.gz.
[lua.git] / include / luadebug.h
blob1dc9f206ea307e828b63d484a739aebc1ec5d632
1 /*
2 ** $Id: luadebug.h,v 1.6 1999/03/04 21:17:26 roberto Exp $
3 ** Debugging API
4 ** See Copyright Notice in lua.h
5 */
8 #ifndef luadebug_h
9 #define luadebug_h
12 #include "lua.h"
14 typedef lua_Object lua_Function;
16 typedef void (*lua_LHFunction) (int line);
17 typedef void (*lua_CHFunction) (lua_Function func, char *file, int line);
19 lua_Function lua_stackedfunction (int level);
20 void lua_funcinfo (lua_Object func, char **source, int *linedefined);
21 int lua_currentline (lua_Function func);
22 char *lua_getobjname (lua_Object o, char **name);
24 lua_Object lua_getlocal (lua_Function func, int local_number, char **name);
25 int lua_setlocal (lua_Function func, int local_number);
27 int lua_nups (lua_Function func);
29 lua_LHFunction lua_setlinehook (lua_LHFunction func);
30 lua_CHFunction lua_setcallhook (lua_CHFunction func);
31 int lua_setdebug (int debug);
34 #endif