1995-10-17 07:12:45 -07:00
|
|
|
/*
|
|
|
|
** LUA - Linguagem para Usuarios de Aplicacao
|
|
|
|
** Grupo de Tecnologia em Computacao Grafica
|
|
|
|
** TeCGraf - PUC-Rio
|
1996-03-20 10:44:02 -08:00
|
|
|
** $Id: luadebug.h,v 1.5 1996/02/08 17:03:20 roberto Exp roberto $
|
1995-10-17 07:12:45 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef luadebug_h
|
|
|
|
#define luadebug_h
|
|
|
|
|
|
|
|
#include "lua.h"
|
|
|
|
|
1996-02-08 09:03:20 -08:00
|
|
|
typedef lua_Object lua_Function;
|
|
|
|
|
1996-01-09 12:22:44 -08:00
|
|
|
typedef void (*lua_LHFunction) (int line);
|
1996-02-08 09:03:20 -08:00
|
|
|
typedef void (*lua_CHFunction) (lua_Function func, char *file, int line);
|
1996-01-09 12:22:44 -08:00
|
|
|
|
1996-02-08 09:03:20 -08:00
|
|
|
lua_Function lua_stackedfunction (int level);
|
1995-10-26 07:21:56 -07:00
|
|
|
void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
|
1996-02-08 09:03:20 -08:00
|
|
|
int lua_currentline (lua_Function func);
|
1996-01-09 12:22:44 -08:00
|
|
|
char *lua_getobjname (lua_Object o, char **name);
|
1995-10-17 07:12:45 -07:00
|
|
|
|
1996-02-08 09:03:20 -08: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 10:10:27 -08:00
|
|
|
|
1996-03-20 10:44:02 -08:00
|
|
|
extern lua_LHFunction lua_linehook;
|
|
|
|
extern lua_CHFunction lua_callhook;
|
1996-02-07 10:10:27 -08:00
|
|
|
extern int lua_debug;
|
|
|
|
|
1995-10-17 07:12:45 -07:00
|
|
|
#endif
|