1995-10-17 07:12:45 -07:00
|
|
|
/*
|
1999-11-22 05:12:07 -08:00
|
|
|
** $Id: luadebug.h,v 1.7 1999/08/16 20:52:00 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"
|
|
|
|
|
1996-02-08 09:03:20 -08:00
|
|
|
typedef lua_Object lua_Function;
|
|
|
|
|
1999-11-22 05:12:07 -08:00
|
|
|
typedef void (*lua_LHFunction) (lua_State *L, int line);
|
|
|
|
typedef void (*lua_CHFunction) (lua_State *L, lua_Function func, const char *file, int line);
|
1996-01-09 12:22:44 -08:00
|
|
|
|
1999-11-22 05:12:07 -08:00
|
|
|
lua_Function lua_stackedfunction (lua_State *L, int level);
|
|
|
|
void lua_funcinfo (lua_State *L, lua_Object func, const char **source, int *linedefined);
|
|
|
|
int lua_currentline (lua_State *L, lua_Function func);
|
|
|
|
const char *lua_getobjname (lua_State *L, lua_Object o, const char **name);
|
1995-10-17 07:12:45 -07:00
|
|
|
|
1999-11-22 05:12:07 -08:00
|
|
|
lua_Object lua_getlocal (lua_State *L, lua_Function func, int local_number,
|
1999-08-16 13:52:00 -07:00
|
|
|
const char **name);
|
1999-11-22 05:12:07 -08:00
|
|
|
int lua_setlocal (lua_State *L, lua_Function func, int local_number);
|
1996-02-07 10:10:27 -08:00
|
|
|
|
1999-11-22 05:12:07 -08:00
|
|
|
int lua_nups (lua_State *L, lua_Function func);
|
1997-09-16 12:25:59 -07:00
|
|
|
|
1999-11-22 05:12:07 -08:00
|
|
|
lua_LHFunction lua_setlinehook (lua_State *L, lua_LHFunction func);
|
|
|
|
lua_CHFunction lua_setcallhook (lua_State *L, lua_CHFunction func);
|
|
|
|
int lua_setdebug (lua_State *L, int debug);
|
1999-01-15 05:11:22 -08:00
|
|
|
|
|
|
|
|
1995-10-17 07:12:45 -07:00
|
|
|
#endif
|