1995-10-17 17:12:45 +03:00
|
|
|
/*
|
1998-09-07 22:59:59 +04:00
|
|
|
** $Id: luadebug.h,v 1.2 1998/06/19 16:14:09 roberto Exp roberto $
|
1998-06-19 20:14:09 +04:00
|
|
|
** Debugging API
|
1997-09-16 23:25:59 +04:00
|
|
|
** See Copyright Notice in lua.h
|
1995-10-17 17:12:45 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef luadebug_h
|
|
|
|
#define luadebug_h
|
|
|
|
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1995-10-17 17:12:45 +03:00
|
|
|
#include "lua.h"
|
|
|
|
|
1996-02-08 20:03:20 +03:00
|
|
|
typedef lua_Object lua_Function;
|
|
|
|
|
1996-01-09 23:22:44 +03:00
|
|
|
typedef void (*lua_LHFunction) (int line);
|
1996-02-08 20:03:20 +03:00
|
|
|
typedef void (*lua_CHFunction) (lua_Function func, char *file, int line);
|
1996-01-09 23:22:44 +03:00
|
|
|
|
1996-02-08 20:03:20 +03:00
|
|
|
lua_Function lua_stackedfunction (int level);
|
1995-10-26 17:21:56 +03:00
|
|
|
void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
|
1996-02-08 20:03:20 +03:00
|
|
|
int lua_currentline (lua_Function func);
|
1996-01-09 23:22:44 +03:00
|
|
|
char *lua_getobjname (lua_Object o, char **name);
|
1995-10-17 17:12:45 +03:00
|
|
|
|
1996-02-08 20:03:20 +03:00
|
|
|
lua_Object lua_getlocal (lua_Function func, int local_number, char **name);
|
|
|
|
int lua_setlocal (lua_Function func, int local_number);
|
1996-02-07 21:10:27 +03:00
|
|
|
|
1998-09-07 22:59:59 +04:00
|
|
|
int lua_nups (lua_Function func);
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1996-03-20 21:44:02 +03:00
|
|
|
extern lua_LHFunction lua_linehook;
|
|
|
|
extern lua_CHFunction lua_callhook;
|
1996-02-07 21:10:27 +03:00
|
|
|
extern int lua_debug;
|
|
|
|
|
1997-09-16 23:25:59 +04:00
|
|
|
|
1995-10-17 17:12:45 +03:00
|
|
|
#endif
|