Add fatal_error() macro

This commit is contained in:
Vinnie Falco
2013-08-05 21:21:12 -07:00
parent 75b778924f
commit 06ed133ae3

View File

@@ -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