ARC port to uClibc
[uclibc-ng.git] / libc / sysdeps / linux / arc / jmpbuf-unwind.h
blobe4ed8fe75f16fd622f81d182da071d28834982bd
1 /*
2 * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
4 * Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
5 */
7 #include <setjmp.h>
8 #include <jmpbuf-offsets.h>
10 /* Test if longjmp to JMPBUF would unwind the frame
11 containing a local variable at ADDRESS. */
12 #define _JMPBUF_UNWINDS(jmpbuf, address) \
13 ((void *) (address) < (void *) (jmpbuf[__JMP_BUF_SP]))