blob: 77c570641610eba49c0b1fa00ca28e9011030c63 [file] [log] [blame]
Imre Kis264d3002024-05-28 16:54:34 +02001/* SPDX-License-Identifier: BSD-3-Clause */
2/*
3 * Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
4 */
5
6#ifndef LIBC_PLATFORM_H_
7#define LIBC_PLATFORM_H_
8
9#include <cdefs.h>
10
11/*
12 * Generic assert fail and abort handler function definitions.
13 * Should be implemented by the environment.
14 */
15void __dead2 platform_assert(const char *file, int line, const char *func,
16 const char *failedexpr);
17
18void __dead2 platform_abort(void);
19
20#endif /* LIBC_PLATFORM_H_ */