1 /* 2 * mcuboot_assert.h 3 * 4 * Cypress-specific assert() macro redefinition 5 * 6 */ 7 8 #ifndef MCUBOOT_ASSERT_H 9 #define MCUBOOT_ASSERT_H 10 11 //#include "cy_bootloader_services.h" 12 13 #define CYBL_ASSERT(...) Cy_BLServ_Assert(__VA_ARGS__) 14 15 #if !defined(NDEBUG) 16 #undef assert 17 #define assert(...) CYBL_ASSERT(__VA_ARGS__) 18 #else 19 #define assert 20 #endif 21 22 #endif /* MCUBOOT_ASSERT_H */ 23