mirror of https://github.com/lua/lua.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
816 B
34 lines
816 B
/*
|
|
** $Id: luadebug.h,v 1.2 1998/06/19 16:14:09 roberto Exp roberto $
|
|
** Debugging API
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
|
|
#ifndef luadebug_h
|
|
#define luadebug_h
|
|
|
|
|
|
#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);
|
|
|
|
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);
|
|
|
|
extern lua_LHFunction lua_linehook;
|
|
extern lua_CHFunction lua_callhook;
|
|
extern int lua_debug;
|
|
|
|
|
|
#endif
|
|
|