2010-05-11 19:42:16 +00:00
|
|
|
// -*- C++ -*-
|
2021-11-17 16:25:01 -05:00
|
|
|
//===----------------------------------------------------------------------===//
|
2010-05-11 19:42:16 +00:00
|
|
|
//
|
2019-01-19 10:56:40 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2010-05-11 19:42:16 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
/*
|
|
|
|
cassert synopsis
|
|
|
|
|
|
|
|
Macros:
|
|
|
|
|
|
|
|
assert
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-12-21 13:01:48 +01:00
|
|
|
#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|
|
|
|
# include <__cxx03/cassert>
|
|
|
|
#else
|
2024-12-10 16:02:12 +01:00
|
|
|
# include <__config>
|
2022-11-22 13:42:33 -05:00
|
|
|
|
|
|
|
// <assert.h> is not provided by libc++
|
2024-12-10 16:02:12 +01:00
|
|
|
# if __has_include(<assert.h>)
|
|
|
|
# include <assert.h>
|
|
|
|
# ifdef _LIBCPP_ASSERT_H
|
|
|
|
# error "If libc++ starts defining <assert.h>, the __has_include check should move to libc++'s <assert.h>"
|
|
|
|
# endif
|
2022-11-22 13:42:33 -05:00
|
|
|
# endif
|
2010-05-11 19:42:16 +00:00
|
|
|
|
2024-12-10 16:02:12 +01:00
|
|
|
# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
# pragma GCC system_header
|
|
|
|
# endif
|
2024-12-21 13:01:48 +01:00
|
|
|
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|