1 /*
2  * Copyright (c) 2001-2024, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #include "cc_pal_log.h"
7 #include <stdlib.h>
8 
CC_PalAbort(const char * exp)9 void CC_PalAbort(const char * exp)
10 {
11     CC_PAL_LOG_ERR("ASSERT:%s:%d: %s", __FILE__, __LINE__, exp);
12     CC_UNUSED_PARAM(exp); /* to avoid compilation error in case DEBUG isn't defined*/
13     exit(1); /* exit() instead of abort() to avoid heap usage */
14 }
15