Skip to content
Snippets Groups Projects
Commit 4f294cbc authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

[assert_cerr] rm redundant cerr message from ASSERT handler ()

Merging branch 'assert_cerr'  into 'r21'.

See merge request !1818
parents ccb8a8c5 54e422ea
No related branches found
No related tags found
2 merge requests!1847rebase on latest r21,!1818rm redundant cerr message from ASSERT handler
Pipeline #107802 failed
......@@ -41,20 +41,15 @@
#else
#include <iostream>
#include <stdexcept>
#define ASSERT(condition) \
if (!(condition)) { \
std::cerr << "Throwing runtime_error: Assertion " #condition " failed in " __FILE__ \
", line " \
<< __LINE__ << std::endl; \
if (!(condition)) \
throw std::runtime_error("BUG: Assertion " #condition " failed in " __FILE__ ", line " \
+ std::to_string(__LINE__) \
+ ".\n" \
"Please report this to the maintainers:\n" \
"- https://jugit.fz-juelich.de/mlz/bornagain/-/issues/new or\n" \
"- contact@bornagainproject.org."); \
}
"- contact@bornagainproject.org.");
#endif // BA_DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment