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 
9 #include <setjmp.h>
10 #include <jmpbuf-offsets.h>
11 
12 /* Test if longjmp to JMPBUF would unwind the frame containing a local
13    variable at ADDRESS.  */
14 #define _JMPBUF_UNWINDS(jmpbuf, address) \
15   ((void *)(address) < (void *)(jmpbuf[__JMP_BUF_SP]))
16