1 /* 2 * Copyright (c) 2025 Google, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef __ZEPHYR_CUSTOM_ASSERT_H 8 #define __ZEPHYR_CUSTOM_ASSERT_H 9 10 #undef __ASSERT 11 12 #define __ASSERT(test, fmt, ...) \ 13 do { \ 14 if (!(test)) { \ 15 __ASSERT_POST_ACTION(); \ 16 } \ 17 } while (false) 18 19 #endif /* __ZEPHYR_CUSTOM_ASSERT_H */ 20