Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_assertion_handler #1258

Open
flg opened this issue Nov 14, 2023 · 3 comments
Open

set_assertion_handler #1258

flg opened this issue Nov 14, 2023 · 3 comments
Labels

Comments

@flg
Copy link

flg commented Nov 14, 2023

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);
@pavelkumbrasev
Copy link
Contributor

Hi @flg, oneTBB doesn't have anything similar.
Could you please describe your use case? Why do you need such API?

@flg
Copy link
Author

flg commented Nov 14, 2023

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.

@pavelkumbrasev
Copy link
Contributor

pavelkumbrasev commented Nov 15, 2023

Thank you for the clarification.
I will discuss the removal of this API within a team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants