luadebug.h 833 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. ** LUA - Linguagem para Usuarios de Aplicacao
  3. ** Grupo de Tecnologia em Computacao Grafica
  4. ** TeCGraf - PUC-Rio
  5. ** $Id: luadebug.h,v 1.3 1996/01/09 20:22:44 roberto Exp roberto $
  6. */
  7. #ifndef luadebug_h
  8. #define luadebug_h
  9. #include "lua.h"
  10. typedef void (*lua_LHFunction) (int line);
  11. typedef void (*lua_CHFunction) (lua_Object func, char *file, int line);
  12. lua_Object lua_stackedfunction (int level);
  13. void lua_funcinfo (lua_Object func, char **filename, int *linedefined);
  14. int lua_currentline (lua_Object func);
  15. char *lua_getobjname (lua_Object o, char **name);
  16. lua_LHFunction lua_setlinehook (lua_LHFunction hook);
  17. lua_CHFunction lua_setcallhook (lua_CHFunction hook);
  18. lua_Object lua_getlocal (lua_Object func, int local_number, char **name);
  19. int lua_setlocal (lua_Object func, int local_number);
  20. extern int lua_debug;
  21. #endif