1 /* 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  */
15 void __dead2 platform_assert(const char *file, int line, const char *func,
16 			     const char *failedexpr);
17 
18 void __dead2 platform_abort(void);
19 
20 #endif /* LIBC_PLATFORM_H_ */
21