1 /* 2 * Copyright (c) 2018, Xilinx Inc. and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * @file assert.h 9 * @brief Zephyr assertion support. 10 */ 11 12 #ifndef __METAL_ASSERT__H__ 13 #error "Include metal/assert.h instead of metal/zephyr/assert.h" 14 #endif 15 16 #ifndef __METAL_ZEPHYR_ASSERT__H__ 17 #define __METAL_ZEPHYR_ASSERT__H__ 18 19 #include <zephyr/kernel.h> 20 21 /** 22 * @brief Assertion macro for Zephyr-based applications. 23 * @param cond Condition to evaluate. 24 */ 25 #define metal_sys_assert(cond) __ASSERT_NO_MSG(cond) 26 27 #endif /* __METAL_ZEPHYR_ASSERT__H__ */ 28 29