jmpbuf-unwind.h 387 B

123456789101112
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. #include <setjmp.h>
  6. #include <jmpbuf-offsets.h>
  7. /* Test if longjmp to JMPBUF would unwind the frame
  8. containing a local variable at ADDRESS. */
  9. #define _JMPBUF_UNWINDS(jmpbuf, address) \
  10. ((void *) (address) < (void *) &(jmpbuf)[0].__regs[__JMP_BUF_SP])