Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/cassert 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 /*
0011     cassert synopsis
0012 
0013 Macros:
0014 
0015     assert
0016 
0017 */
0018 
0019 #include <__cxx03/__config>
0020 
0021 // <assert.h> is not provided by libc++
0022 #if __has_include(<assert.h>)
0023 #  include <assert.h>
0024 #  ifdef _LIBCPP_ASSERT_H
0025 #    error "If libc++ starts defining <assert.h>, the __has_include check should move to libc++'s <assert.h>"
0026 #  endif
0027 #endif
0028 
0029 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0030 #  pragma GCC system_header
0031 #endif