Warning, /include/c++/v1/csetjmp is written in an unsupported language. File is not indexed.
0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009
0010 #ifndef _LIBCPP_CSETJMP
0011 #define _LIBCPP_CSETJMP
0012
0013 /*
0014 csetjmp synopsis
0015
0016 Macros:
0017
0018 setjmp
0019
0020 namespace std
0021 {
0022
0023 Types:
0024
0025 jmp_buf
0026
0027 void longjmp(jmp_buf env, int val);
0028
0029 } // std
0030
0031 */
0032
0033 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0034 # include <__cxx03/csetjmp>
0035 #else
0036 # include <__config>
0037
0038 // <setjmp.h> is not provided by libc++
0039 # if __has_include(<setjmp.h>)
0040 # include <setjmp.h>
0041 # ifdef _LIBCPP_SETJMP_H
0042 # error "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h>"
0043 # endif
0044 # endif
0045
0046 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0047 # pragma GCC system_header
0048 # endif
0049
0050 _LIBCPP_BEGIN_NAMESPACE_STD
0051
0052 using ::jmp_buf _LIBCPP_USING_IF_EXISTS;
0053 using ::longjmp _LIBCPP_USING_IF_EXISTS;
0054
0055 _LIBCPP_END_NAMESPACE_STD
0056
0057 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0058
0059 #endif // _LIBCPP_CSETJMP