-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Replace QtDebug-based DEBUG_ASSERT implementation with C++ assert() #4132
Conversation
Can you describe which way the assert string goes now? Does it still end in the mixxx.log file? |
Nope, it just prints to the terminal and exits. That's the limitation. |
Mm, no good news. What fixes this PR in addition to my branch? Can you give an example, wat we can do with assert() and what fails with our implementation? Can we adopt the solution from std to our version. |
Pull Request Test Coverage Report for Build 1052730655
💛 - Coveralls |
#define VERIFY_OR_DEBUG_ASSERT(cond) \ | ||
DEBUG_ASSERT(cond); \ | ||
if (false) | ||
#define RELEASE_ASSERT(cond) assert(static_cast<bool>(cond)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about improving the current solution as proposed in #4131 and then as a second step prepare the migration to the Having the output of a debug assertion appear in the log file helps to analyze bug reports from users who are not familiar with using the command line and a debugger. |
My original idea was to make the whole DEBUG_ASSERT infrastructure a bit easier. But this seems not feasible if we keep the requirement to log the assertion into the logfile (which is useful without a doubt). If @daschuer fixed the issues in #4131, I'll just close this for now. |
No description provided.