mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Change to fatal_assert()
This commit is contained in:
@@ -123,7 +123,7 @@ public:
|
|||||||
// We don't really expect the program to run after this
|
// We don't really expect the program to run after this
|
||||||
// but the unit test is here so you can manually test it.
|
// but the unit test is here so you can manually test it.
|
||||||
int shouldBeZero (1);
|
int shouldBeZero (1);
|
||||||
fatal_require (shouldBeZero == 0);
|
fatal_assert (shouldBeZero == 0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -157,6 +157,6 @@ private:
|
|||||||
{ if (beast::beast_isRunningUnderDebugger()) beast_breakDebugger; \
|
{ if (beast::beast_isRunningUnderDebugger()) beast_breakDebugger; \
|
||||||
FatalError ("Assertion '" BEAST_STRINGIFY(expression) "' failed", __FILE__, __LINE__); \
|
FatalError ("Assertion '" BEAST_STRINGIFY(expression) "' failed", __FILE__, __LINE__); \
|
||||||
BEAST_ANALYZER_NORETURN }
|
BEAST_ANALYZER_NORETURN }
|
||||||
#define fatal_require(condition) { if (! (condition)) { fatal_require_report(condition); } }
|
#define fatal_assert(condition) { if (! (condition)) { fatal_require_report(condition); } }
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Thread::~Thread()
|
|||||||
To avoid this type of nastiness, always make sure you call stopThread() before or during
|
To avoid this type of nastiness, always make sure you call stopThread() before or during
|
||||||
your subclass's destructor.
|
your subclass's destructor.
|
||||||
*/
|
*/
|
||||||
fatal_require (! isThreadRunning());
|
fatal_assert (! isThreadRunning());
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user