mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 22:23:33 +08:00
handleFatalError() moved to error.hpp
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user