mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/*******************************************************************************
|
|
* (c) Copyright 2008-2018 Microsemi SoC Products Group. All rights reserved.
|
|
*
|
|
* SVN $Revision: 9661 $
|
|
* SVN $Date: 2018-01-15 16:13:33 +0530 (Mon, 15 Jan 2018) $
|
|
*/
|
|
#ifndef HAL_ASSERT_HEADER
|
|
#define HAL_ASSERT_HEADER
|
|
|
|
#define NDEBUG 1
|
|
|
|
#if defined(NDEBUG)
|
|
/***************************************************************************//**
|
|
* HAL_ASSERT() is defined out when the NDEBUG symbol is used.
|
|
******************************************************************************/
|
|
#define HAL_ASSERT(CHECK)
|
|
|
|
#else
|
|
/***************************************************************************//**
|
|
* Default behaviour for HAL_ASSERT() macro:
|
|
*------------------------------------------------------------------------------
|
|
The behaviour is toolchain specific and project setting specific.
|
|
******************************************************************************/
|
|
#define HAL_ASSERT(CHECK) ASSERT(CHECK);
|
|
|
|
#endif /* NDEBUG */
|
|
|
|
#endif /* HAL_ASSERT_HEADER */
|
|
|