2021-06-10 20:46:13 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020-2021, WangHuachen
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-11-30 WangHuachen the first version
|
|
|
|
*/
|
2020-11-30 13:13:08 +08:00
|
|
|
#ifndef XIL_ASSERT_H /* prevent circular inclusions */
|
|
|
|
#define XIL_ASSERT_H /* by using protection macros */
|
|
|
|
|
|
|
|
#include "xil_types.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
#define Xil_AssertNonvoid(Expression) RT_ASSERT(Expression)
|
|
|
|
#define Xil_AssertVoid(Expression) RT_ASSERT(Expression)
|
|
|
|
#define Xil_AssertVoidAlways() RT_ASSERT(0)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* end of protection macro */
|
|
|
|
/**
|
|
|
|
* @} End of "addtogroup common_assert_apis".
|
|
|
|
*/
|