mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-14 02:36:06 -04:00
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:
@ -4,3 +4,11 @@
|
||||
void gbshutdownAbort( bool save_on_abort ) {
|
||||
g_process.shutdownAbort(save_on_abort);
|
||||
}
|
||||
|
||||
void gbshutdownLogicError() {
|
||||
gbshutdownAbort(true);
|
||||
}
|
||||
|
||||
void gbshutdownCorrupted() {
|
||||
gbshutdownAbort(false);
|
||||
}
|
||||
|
9
Sanity.h
9
Sanity.h
@ -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
|
||||
|
Reference in New Issue
Block a user