(_JMPBUF_UNWINDS): New macro.
authorroland <roland>
Mon, 27 Mar 1995 09:24:15 +0000 (09:24 +0000)
committerroland <roland>
Mon, 27 Mar 1995 09:24:15 +0000 (09:24 +0000)
sysdeps/i386/jmp_buf.h

index 7686c4d..7949883 100644 (file)
@@ -7,3 +7,8 @@ typedef struct
     __ptr_t __sp;
     __ptr_t __pc;
   } __jmp_buf[1];
+
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address) \
+  ((__ptr_t) (address) < (jmpbuf)[0].__sp)