1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

(_JMPBUF_UNWINDS): Added.

1998-04-24  5:45  Richard Henderson  <rth@cygnus.com>

	* sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Added.
This commit is contained in:
Richard Henderson
1998-04-23 22:46:39 +00:00
parent af3878dff0
commit a55e5526e2
2 changed files with 10 additions and 0 deletions

View File

@@ -74,4 +74,10 @@
#ifndef __ASSEMBLY__
typedef long int __jmp_buf[17];
/* Test if longjmp to JMPBUF would unwind the frame containing a local
variable at ADDRESS. */
#define _JMPBUF_UNWINDS(_jmpbuf, _address) \
({ register void *_sp __asm__("$30"); void *_addr = (_address); \
_sp <= _addr && _addr < (void *)((_jmpbuf)[JB_SP]); })
#endif