mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
Add fatal_error() macro
This commit is contained in:
@@ -157,6 +157,9 @@ private:
|
||||
{ if (beast::beast_isRunningUnderDebugger()) beast_breakDebugger; \
|
||||
FatalError ("Assertion '" BEAST_STRINGIFY(expression) "' failed", __FILE__, __LINE__); \
|
||||
BEAST_ANALYZER_NORETURN }
|
||||
|
||||
#define fatal_assert(condition) { if (! (condition)) { fatal_require_report(condition); } }
|
||||
|
||||
#define fatal_error(message) do { FatalError (message, __FILE__, __LINE__); BEAST_ANALYZER_NORETURN } while (0);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user