Cygwin: (mostly) drop NT4 and Samba < 3.0 support
[newlib-cygwin.git] / winsup / cygwin / local_includes / gcc_seh.h
blobd93c5a23956950cbc99a2ac4a4f5e01a81dcc9ab
1 /* gcc_seh.h: GCC exception codes.
3 This software is a copyrighted work licensed under the terms of the
4 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
5 details. */
7 #pragma once
9 /* From the GCC source file libgcc/unwind-seh.c. */
11 #define STATUS_USER_DEFINED (1U << 29)
12 #define GCC_MAGIC (('G' << 16) | ('C' << 8) | 'C')
13 #define GCC_EXCEPTION(TYPE) \
14 (STATUS_USER_DEFINED | ((TYPE) << 24) | GCC_MAGIC)
15 #define STATUS_GCC_THROW GCC_EXCEPTION (0)
16 #define STATUS_GCC_UNWIND GCC_EXCEPTION (1)
17 #define STATUS_GCC_FORCED GCC_EXCEPTION (2)