aboutsummaryrefslogtreecommitdiff
path: root/system/include/libcxx/csetjmp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-24 19:06:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-24 19:06:33 -0700
commit1ea039eea38dad37c5b0c836cf98829bad6013ce (patch)
tree6d851de99c00b4aa1c45624df570b5cb7f89fed5 /system/include/libcxx/csetjmp
parentdd0230c9cf09a7b19712a4acefe0ae27ea40ea85 (diff)
include libcxx
Diffstat (limited to 'system/include/libcxx/csetjmp')
-rw-r--r--system/include/libcxx/csetjmp50
1 files changed, 50 insertions, 0 deletions
diff --git a/system/include/libcxx/csetjmp b/system/include/libcxx/csetjmp
new file mode 100644
index 00000000..2b8b81f9
--- /dev/null
+++ b/system/include/libcxx/csetjmp
@@ -0,0 +1,50 @@
+// -*- C++ -*-
+//===--------------------------- csetjmp ----------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_CSETJMP
+#define _LIBCPP_CSETJMP
+
+/*
+ csetjmp synopsis
+
+Macros:
+
+ setjmp
+
+namespace std
+{
+
+Types:
+
+ jmp_buf
+
+void longjmp(jmp_buf env, int val);
+
+} // std
+
+*/
+
+#include <__config>
+#include <setjmp.h>
+
+#pragma GCC system_header
+
+#ifndef setjmp
+#define setjmp(env) setjmp(env)
+#endif
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+using ::jmp_buf;
+using ::longjmp;
+
+_LIBCPP_END_NAMESPACE_STD
+
+#endif // _LIBCPP_CSETJMP