jmpbuf-unwind.h 485 B

1234567891011121314
  1. /*
  2. * Copyright (C) 2004-2005 Atmel Corporation
  3. *
  4. * This file is subject to the terms and conditions of the GNU Lesser General
  5. * Public License. See the file "COPYING.LIB" in the main directory of this
  6. * archive for more details.
  7. */
  8. #include <setjmp.h>
  9. #include <jmpbuf-offsets.h>
  10. /* Test if longjmp to JMPBUF would unwind the frame containing a local
  11. variable at ADDRESS. */
  12. #define _JMPBUF_UNWINDS(jmpbuf, address) \
  13. ((void *)(address) < (void *)(jmpbuf[__JMP_BUF_SP]))