3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
7 * Declarations supporting setjmp and longjump, a method for avoiding
8 * the normal function call return sequence. (Bleah!)
15 /* All the headers include this file. */
25 * The buffer used by setjmp to store the information used by longjmp
26 * to perform it's evil goto-like work. The size of this buffer was
27 * determined through experimentation; it's contents are a mystery.
28 * NOTE: This was determined on an i386 (actually a Pentium). The
29 * contents could be different on an Alpha or something else.
33 typedef _JBTYPE
jmp_buf[_JBLEN
];
36 * The function provided by CRTDLL which appears to do the actual work
39 _CRTIMP
int __cdecl
_setjmp (jmp_buf);
41 #define setjmp(x) _setjmp(x)
44 * Return to the last setjmp call and act as if setjmp had returned
45 * nVal (which had better be non-zero!).
47 _CRTIMP
void __cdecl
longjmp (jmp_buf, int) __MINGW_ATTRIB_NORETURN
;
53 #endif /* Not RC_INVOKED */
55 #endif /* Not _SETJMP_H_ */