summaryrefslogtreecommitdiff
path: root/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xil_assert.h
blob: 7abe853e2946f0df90849b8f78cb39715ab39ec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2020-2021, WangHuachen
 *
 * SPDX-License-Identifier: MIT
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-11-30     WangHuachen  the first version
 */
#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".
*/