luadebug.h 913 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. ** $Id: luadebug.h,v 1.6 1999/03/04 21:17:26 roberto Exp roberto $
  3. ** Debugging API
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef luadebug_h
  7. #define luadebug_h
  8. #include "lua.h"
  9. typedef lua_Object lua_Function;
  10. typedef void (*lua_LHFunction) (int line);
  11. typedef void (*lua_CHFunction) (lua_Function func, const char *file, int line);
  12. lua_Function lua_stackedfunction (int level);
  13. void lua_funcinfo (lua_Object func, const char **source, int *linedefined);
  14. int lua_currentline (lua_Function func);
  15. const char *lua_getobjname (lua_Object o, const char **name);
  16. lua_Object lua_getlocal (lua_Function func, int local_number,
  17. const char **name);
  18. int lua_setlocal (lua_Function func, int local_number);
  19. int lua_nups (lua_Function func);
  20. lua_LHFunction lua_setlinehook (lua_LHFunction func);
  21. lua_CHFunction lua_setcallhook (lua_CHFunction func);
  22. int lua_setdebug (int debug);
  23. #endif