llvm-project/libc/src/assert/__assert_fail.h
Michael Jones 5080840d28 [LIBC][NFC] Rename errno and assert files to match other files with functions
Rename the files containing the `__errno_location` function
to `__errno_location.h/cpp` to match the other files and move
the `llvmlibc_errno` macro to its own file.

Split assert.h into `__assert_fail.h` (contains the function prototype)
and assert.h (contains the assert macro).

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D90653
2020-11-03 21:29:32 +00:00

22 lines
720 B
C++

//===-- Internal header for __assert_fail -----------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_ASSERT_ASSERT_FAIL_H
#define LLVM_LIBC_SRC_ASSERT_ASSERT_FAIL_H
#include <stddef.h>
namespace __llvm_libc {
[[noreturn]] void __assert_fail(const char *assertion, const char *file,
unsigned line, const char *function);
} // namespace __llvm_libc
#endif // LLVM_LIBC_SRC_ASSERT_ASSERT_FAIL_H