ldebug.h 784 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ** $Id: ldebug.h,v 1.21 2002/05/15 18:57:44 roberto Exp roberto $
  3. ** Auxiliary functions from Debug Interface module
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef ldebug_h
  7. #define ldebug_h
  8. #include "lstate.h"
  9. #include "luadebug.h"
  10. #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
  11. #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
  12. void luaG_typeerror (lua_State *L, const TObject *o, const char *opname);
  13. void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
  14. void luaG_aritherror (lua_State *L, StkId p1, const TObject *p2);
  15. void luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2);
  16. void luaG_runerror (lua_State *L, const char *fmt, ...);
  17. void luaG_errormsg (lua_State *L, int internal);
  18. int luaG_checkcode (const Proto *pt);
  19. #endif