Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/local_includes/gcc_seh.h')
-rw-r--r--winsup/cygwin/local_includes/gcc_seh.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/gcc_seh.h b/winsup/cygwin/local_includes/gcc_seh.h
new file mode 100644
index 000000000..d93c5a239
--- /dev/null
+++ b/winsup/cygwin/local_includes/gcc_seh.h
@@ -0,0 +1,17 @@
+/* gcc_seh.h: GCC exception codes.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+#pragma once
+
+/* From the GCC source file libgcc/unwind-seh.c. */
+
+#define STATUS_USER_DEFINED (1U << 29)
+#define GCC_MAGIC (('G' << 16) | ('C' << 8) | 'C')
+#define GCC_EXCEPTION(TYPE) \
+ (STATUS_USER_DEFINED | ((TYPE) << 24) | GCC_MAGIC)
+#define STATUS_GCC_THROW GCC_EXCEPTION (0)
+#define STATUS_GCC_UNWIND GCC_EXCEPTION (1)
+#define STATUS_GCC_FORCED GCC_EXCEPTION (2)