xref: /freebsd/contrib/llvm-project/libcxx/include/__cxx03/cassert (revision 700637cbb5e582861067a11aaca4d053546871d2)
1*700637cbSDimitry Andric// -*- C++ -*-
2*700637cbSDimitry Andric//===----------------------------------------------------------------------===//
3*700637cbSDimitry Andric//
4*700637cbSDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5*700637cbSDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
6*700637cbSDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7*700637cbSDimitry Andric//
8*700637cbSDimitry Andric//===----------------------------------------------------------------------===//
9*700637cbSDimitry Andric
10*700637cbSDimitry Andric/*
11*700637cbSDimitry Andric    cassert synopsis
12*700637cbSDimitry Andric
13*700637cbSDimitry AndricMacros:
14*700637cbSDimitry Andric
15*700637cbSDimitry Andric    assert
16*700637cbSDimitry Andric
17*700637cbSDimitry Andric*/
18*700637cbSDimitry Andric
19*700637cbSDimitry Andric#include <__cxx03/__config>
20*700637cbSDimitry Andric
21*700637cbSDimitry Andric// <assert.h> is not provided by libc++
22*700637cbSDimitry Andric#if __has_include(<assert.h>)
23*700637cbSDimitry Andric#  include <assert.h>
24*700637cbSDimitry Andric#  ifdef _LIBCPP_ASSERT_H
25*700637cbSDimitry Andric#    error "If libc++ starts defining <assert.h>, the __has_include check should move to libc++'s <assert.h>"
26*700637cbSDimitry Andric#  endif
27*700637cbSDimitry Andric#endif
28*700637cbSDimitry Andric
29*700637cbSDimitry Andric#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
30*700637cbSDimitry Andric#  pragma GCC system_header
31*700637cbSDimitry Andric#endif
32