mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
(_JMPBUF_UNWINDS): Added.
This commit is contained in:
parent
91e4b2f65e
commit
4af6e4ade6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user