1 //===-- C standard library header assert.h
--------------------------------===//
3 // Part of the LLVM Project
, under the Apache License v2.0 with LLVM Exceptions.
4 // See https
://llvm.org
/LICENSE.txt for license information.
5 // SPDX
-License
-Identifier
: Apache
-2.0 WITH LLVM
-exception
7 //===----------------------------------------------------------------------===//
9 #include
"__llvm-libc-common.h"
10 #include
"llvm-libc-macros/assert-macros.h"
12 // This file may be usefully included multiple times to change
assert()'s
13 // definition based on NDEBUG.
17 #define static_assert _Static_assert
22 #define assert(e) (void)0
27 _Noreturn void __assert_fail(const char *, const char *, unsigned, const char *) __NOEXCEPT;
29 ((e) ? (void)0 : __assert_fail(#e, __FILE__, __LINE__, __PRETTY_FUNCTION__))