Originally Posted by
lni
In a perfect world, we all should be doing that. Unfortunately, no one can write a bug free software. Nobody wants to be hit by a car, it is just the car hits people
Does it matter if instead of assert() you call myAssert()? Especially that AFAIR it's a macro anyway...
void myAssert(bool t){
if(t) return;
QMessageBox::critical(0,
"Assert",
"An assert has occured, the application will close");
abort();
}
void myAssert(bool t){
if(t) return;
QMessageBox::critical(0, "Assert", "An assert has occured, the application will close");
abort();
}
To copy to clipboard, switch view to plain text mode
Bookmarks