lua/luadebug.h

35 lines
860 B
C
Raw Normal View History

1995-10-17 17:12:45 +03:00
/*
** $Id: luadebug.h,v 1.4 1999/01/15 13:11:22 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"
typedef lua_Object lua_Function;
typedef void (*lua_LHFunction) (int line);
typedef void (*lua_CHFunction) (lua_Function func, char *file, int line);
lua_Function lua_stackedfunction (int level);
void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
int lua_currentline (lua_Function func);
char *lua_getobjname (lua_Object o, char **name);
1995-10-17 17:12:45 +03:00
lua_Object lua_getlocal (lua_Function func, int local_number, char **name);
int lua_setlocal (lua_Function func, int local_number);
int lua_nups (lua_Function func);
1997-09-16 23:25:59 +04:00
lua_LHFunction lua_setlinehook (lua_LHFunction func);
lua_CHFunction lua_setcallhook (lua_CHFunction func);
int lua_setdebug (int debug);
1995-10-17 17:12:45 +03:00
#endif