handleFatalError() moved to error.hpp

This commit is contained in:
Pavel Kirienko
2014-03-28 19:26:25 +04:00
parent ae63ad5db5
commit 0d9be57d92
9 changed files with 15 additions and 27 deletions
+9
View File
@@ -26,4 +26,13 @@ enum
ErrLogic
};
/**
* Fatal error handler.
* Throws std::runtime_error() if exceptions are available, otherwise calls assert(0) then std::abort().
*/
#if __GNUC__
__attribute__ ((noreturn))
#endif
void handleFatalError(const char* msg);
}