Introduced gbshutdownLogicError() and gbshutdownCorrupted()

Two new explicit and well-named functions to use in place of generic gbshutdownAbort() or Process::shutdownAbort()
This commit is contained in:
Ivan Skytte Jørgensen
2016-07-05 15:14:07 +02:00
parent baddd9e74e
commit 6994859805
2 changed files with 17 additions and 0 deletions

@ -4,3 +4,11 @@
void gbshutdownAbort( bool save_on_abort ) {
g_process.shutdownAbort(save_on_abort);
}
void gbshutdownLogicError() {
gbshutdownAbort(true);
}
void gbshutdownCorrupted() {
gbshutdownAbort(false);
}

@ -3,9 +3,18 @@
// Ugly - but so is lots of code in .h files
#ifndef __lint /*flexelint cannot handle c++11 yet*/
[[ noreturn ]] void gbshutdownAbort( bool save_on_abort );
[[ noreturn ]] void gbshutdownLogicError();
[[ noreturn ]] void gbshutdownCorrupted();
#else
void gbshutdownAbort( bool save_on_abort );
void gbshutdownLogicError();
void gbshutdownCorrupted();
#endif
#endif // GB_SANITY_H