blob: d0b2c078967dfb792af7fba5c4d88cdcfd73c9fd [file] [log] [blame]
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00001// -*- C++ -*-
2//===--------------------------- csetjmp ----------------------------------===//
3//
Howard Hinnantf5256e12010-05-11 21:36:01 +00004// The LLVM Compiler Infrastructure
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00005//
Howard Hinnantb64f8b02010-11-16 22:09:02 +00006// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00008//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_CSETJMP
12#define _LIBCPP_CSETJMP
13
14/*
15 csetjmp synopsis
16
17Macros:
18
19 setjmp
20
21namespace std
22{
23
24Types:
25
26 jmp_buf
27
28void longjmp(jmp_buf env, int val);
29
30} // std
31
32*/
33
34#include <__config>
35#include <setjmp.h>
36
Howard Hinnant08e17472011-10-17 20:05:10 +000037#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000038#pragma GCC system_header
Howard Hinnant08e17472011-10-17 20:05:10 +000039#endif
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000040
Dan Albert1d4a1ed2016-05-25 22:36:09 -070041#ifndef setjmp
42#define setjmp(env) setjmp(env)
43#endif
44
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000045_LIBCPP_BEGIN_NAMESPACE_STD
46
47using ::jmp_buf;
48using ::longjmp;
49
50_LIBCPP_END_NAMESPACE_STD
51
52#endif // _LIBCPP_CSETJMP