Change to fatal_assert()

This commit is contained in:
Vinnie Falco
2013-08-05 17:38:15 -07:00
parent c12d92f8ad
commit 8135c89683
3 changed files with 3 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ public:
// We don't really expect the program to run after this
// but the unit test is here so you can manually test it.
int shouldBeZero (1);
fatal_require (shouldBeZero == 0);
fatal_assert (shouldBeZero == 0);
}
};

View File

@@ -157,6 +157,6 @@ private:
{ if (beast::beast_isRunningUnderDebugger()) beast_breakDebugger; \
FatalError ("Assertion '" BEAST_STRINGIFY(expression) "' failed", __FILE__, __LINE__); \
BEAST_ANALYZER_NORETURN }
#define fatal_require(condition) { if (! (condition)) { fatal_require_report(condition); } }
#define fatal_assert(condition) { if (! (condition)) { fatal_require_report(condition); } }
#endif

View File

@@ -40,7 +40,7 @@ Thread::~Thread()
To avoid this type of nastiness, always make sure you call stopThread() before or during
your subclass's destructor.
*/
fatal_require (! isThreadRunning());
fatal_assert (! isThreadRunning());
}
//==============================================================================