Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/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___CXX03_CSETJMP
0011 #define _LIBCPP___CXX03_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 #include <__cxx03/__config>
0034 
0035 // <setjmp.h> is not provided by libc++
0036 #if __has_include(<setjmp.h>)
0037 #  include <setjmp.h>
0038 #  ifdef _LIBCPP___CXX03_SETJMP_H
0039 #    error "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h>"
0040 #  endif
0041 #endif
0042 
0043 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0044 #  pragma GCC system_header
0045 #endif
0046 
0047 _LIBCPP_BEGIN_NAMESPACE_STD
0048 
0049 using ::jmp_buf _LIBCPP_USING_IF_EXISTS;
0050 using ::longjmp _LIBCPP_USING_IF_EXISTS;
0051 
0052 _LIBCPP_END_NAMESPACE_STD
0053 
0054 #endif // _LIBCPP___CXX03_CSETJMP