set_assertion_handler
tbb::set_assertion_handler was removed as from release 2021.1. Is there any other way to set an assertion handler?
tbb/detail/_assert.h still contains:
//! Process an assertion failure.
/** Normally called from __TBB_ASSERT macro.
If assertion handler is null, print message for assertion failure and abort.
Otherwise call the assertion handler. */
TBB_EXPORT void __TBB_EXPORTED_FUNC assertion_failure(const char* location, int line, const char* expression, const char* comment);
Hi @flg, oneTBB doesn't have anything similar. Could you please describe your use case? Why do you need such API?
Hi Pavel, Thanks for replying. The use case is simple: we would like to publish the assertion message to our own logging system before aborting.
Thank you for the clarification. I will discuss the removal of this API within a team.
@flg is this issue still relevant?
Hi, I don't think this feature has been re-added so yes it is still relevant. I may missed it though; @pavelkumbrasev could maybe better comment on this.