1 /* 2 * Copyright (c) 2020-2021, WangHuachen 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2020-11-30 WangHuachen the first version 9 */ 10 #ifndef XIL_ASSERT_H /* prevent circular inclusions */ 11 #define XIL_ASSERT_H /* by using protection macros */ 12 13 #include "xil_types.h" 14 15 #ifdef __cplusplus 16 extern "C" 17 { 18 #endif 19 #define Xil_AssertNonvoid(Expression) RT_ASSERT(Expression) 20 #define Xil_AssertVoid(Expression) RT_ASSERT(Expression) 21 #define Xil_AssertVoidAlways() RT_ASSERT(0) 22 23 #ifdef __cplusplus 24 } 25 #endif 26 27 #endif /* end of protection macro */ 28 /** 29 * @} End of "addtogroup common_assert_apis". 30 */ 31