lj_gdbjit.h 464 B

12345678910111213141516171819202122
  1. /*
  2. ** Client for the GDB JIT API.
  3. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
  4. */
  5. #ifndef _LJ_GDBJIT_H
  6. #define _LJ_GDBJIT_H
  7. #include "lj_obj.h"
  8. #include "lj_jit.h"
  9. #if LJ_HASJIT && defined(LUAJIT_USE_GDBJIT)
  10. LJ_FUNC void lj_gdbjit_addtrace(jit_State *J, GCtrace *T);
  11. LJ_FUNC void lj_gdbjit_deltrace(jit_State *J, GCtrace *T);
  12. #else
  13. #define lj_gdbjit_addtrace(J, T) UNUSED(T)
  14. #define lj_gdbjit_deltrace(J, T) UNUSED(T)
  15. #endif
  16. #endif