37 #ifndef NRF_MESH_ASSERT_H__ 38 #define NRF_MESH_ASSERT_H__ 59 #include "nrf_mesh_assert_lint.h" 60 #elif defined(__GNUC__) 61 #include "nrf_mesh_assert_gcc.h" 62 #elif defined(__CC_ARM) 63 #include "nrf_mesh_assert_armcc.h" 65 #error "Your compiler is currently not supported." 73 #define NRF_MESH_ASSERT(cond) \ 78 if (m_assertion_handler) \ 80 m_assertion_handler(pc); \ 93 #define NRF_MESH_ASSERT_DEBUG(cond) (void) cond 95 #define NRF_MESH_ASSERT_DEBUG(cond) NRF_MESH_ASSERT(cond) 102 #define NRF_MESH_ERROR_CHECK(err) NRF_MESH_ASSERT(err == NRF_SUCCESS) 108 #define NRF_MESH_STATIC_ASSERT(cond) typedef char static_assert[(cond) ? 1 : -1] nrf_mesh_assertion_handler_t m_assertion_handler
Pointer to the assert handler.
void(* nrf_mesh_assertion_handler_t)(uint32_t pc)
Mesh assertion handler type.