jmpbuf-unwind.h 541 B

123456789101112131415
  1. #include <setjmp.h>
  2. #include <stdint.h>
  3. #include <unwind.h>
  4. /* Test if longjmp to JMPBUF would unwind the frame
  5. containing a local variable at ADDRESS. */
  6. #define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
  7. ((void *) (address) < (void *) demangle (jmpbuf[0].__sp))
  8. #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
  9. _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
  10. #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \
  11. ((uintptr_t) (_address) - (_adj) < (uintptr_t) (_jmpbuf[0].__sp) - (_adj))