lua/luadebug.h

36 lines
913 B
C
Raw Normal View History

1995-10-17 07:12:45 -07:00
/*
1999-08-16 13:52:00 -07:00
** $Id: luadebug.h,v 1.6 1999/03/04 21:17:26 roberto Exp roberto $
1998-06-19 09:14:09 -07:00
** Debugging API
1997-09-16 12:25:59 -07:00
** See Copyright Notice in lua.h
1995-10-17 07:12:45 -07:00
*/
#ifndef luadebug_h
#define luadebug_h
1997-09-16 12:25:59 -07:00
1995-10-17 07:12:45 -07:00
#include "lua.h"
typedef lua_Object lua_Function;
typedef void (*lua_LHFunction) (int line);
1999-08-16 13:52:00 -07:00
typedef void (*lua_CHFunction) (lua_Function func, const char *file, int line);
lua_Function lua_stackedfunction (int level);
1999-08-16 13:52:00 -07:00
void lua_funcinfo (lua_Object func, const char **source, int *linedefined);
int lua_currentline (lua_Function func);
1999-08-16 13:52:00 -07:00
const char *lua_getobjname (lua_Object o, const char **name);
1995-10-17 07:12:45 -07:00
1999-08-16 13:52:00 -07:00
lua_Object lua_getlocal (lua_Function func, int local_number,
const char **name);
int lua_setlocal (lua_Function func, int local_number);
int lua_nups (lua_Function func);
1997-09-16 12:25:59 -07:00
lua_LHFunction lua_setlinehook (lua_LHFunction func);
lua_CHFunction lua_setcallhook (lua_CHFunction func);
int lua_setdebug (int debug);
1995-10-17 07:12:45 -07:00
#endif