summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/libcxx/include/setjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/libcxx/include/setjmp.h')
-rw-r--r--gnu/llvm/libcxx/include/setjmp.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/llvm/libcxx/include/setjmp.h b/gnu/llvm/libcxx/include/setjmp.h
new file mode 100644
index 00000000000..f30a8d401d1
--- /dev/null
+++ b/gnu/llvm/libcxx/include/setjmp.h
@@ -0,0 +1,44 @@
+// -*- C++ -*-
+//===--------------------------- setjmp.h ---------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_SETJMP_H
+#define _LIBCPP_SETJMP_H
+
+/*
+ setjmp.h synopsis
+
+Macros:
+
+ setjmp
+
+Types:
+
+ jmp_buf
+
+void longjmp(jmp_buf env, int val);
+
+*/
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
+#include_next <setjmp.h>
+
+#ifdef __cplusplus
+
+#ifndef setjmp
+#define setjmp(env) setjmp(env)
+#endif
+
+#endif // __cplusplus
+
+#endif // _LIBCPP_SETJMP_H