mirror of
https://github.com/lua/lua.git
synced 2025-01-14 05:43:00 +08:00
5a3a1fe458
"lua_getlocal" and "lua_setlocal".
30 lines
833 B
C
30 lines
833 B
C
/*
|
|
** LUA - Linguagem para Usuarios de Aplicacao
|
|
** Grupo de Tecnologia em Computacao Grafica
|
|
** TeCGraf - PUC-Rio
|
|
** $Id: luadebug.h,v 1.3 1996/01/09 20:22:44 roberto Exp roberto $
|
|
*/
|
|
|
|
|
|
#ifndef luadebug_h
|
|
#define luadebug_h
|
|
|
|
#include "lua.h"
|
|
|
|
typedef void (*lua_LHFunction) (int line);
|
|
typedef void (*lua_CHFunction) (lua_Object func, char *file, int line);
|
|
|
|
lua_Object lua_stackedfunction (int level);
|
|
void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
|
|
int lua_currentline (lua_Object func);
|
|
char *lua_getobjname (lua_Object o, char **name);
|
|
lua_LHFunction lua_setlinehook (lua_LHFunction hook);
|
|
lua_CHFunction lua_setcallhook (lua_CHFunction hook);
|
|
|
|
lua_Object lua_getlocal (lua_Object func, int local_number, char **name);
|
|
int lua_setlocal (lua_Object func, int local_number);
|
|
|
|
extern int lua_debug;
|
|
|
|
#endif
|