Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

35 rindas
1.1 KiB

  1. /*
  2. ** $Id: ldebug.h,v 2.7 2011/10/07 20:45:19 roberto Exp $
  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. #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
  10. #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
  11. #define resethookcount(L) (L->hookcount = L->basehookcount)
  12. /* Active Lua function (given call info) */
  13. #define ci_func(ci) (clLvalue((ci)->func))
  14. LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
  15. const char *opname);
  16. LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
  17. LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
  18. const TValue *p2);
  19. LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
  20. const TValue *p2);
  21. LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
  22. LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
  23. #endif