1 /* SPDX-License-Identifier: MIT */ 2 3 /* Copyright 2024 Advanced Micro Devices, Inc. */ 4 5 #ifndef SPL_DEBUG_H 6 #define SPL_DEBUG_H 7 8 #ifdef SPL_ASSERT 9 #undef SPL_ASSERT 10 #endif 11 #define SPL_ASSERT(b) 12 13 #define SPL_ASSERT_CRITICAL(expr) do {if (expr)/* Do nothing */; } while (0) 14 15 #ifdef SPL_DALMSG 16 #undef SPL_DALMSG 17 #endif 18 #define SPL_DALMSG(b) 19 20 #ifdef SPL_DAL_ASSERT_MSG 21 #undef SPL_DAL_ASSERT_MSG 22 #endif 23 #define SPL_DAL_ASSERT_MSG(b, m) 24 25 #endif // SPL_DEBUG_H 26