// WARNING: Changes to this file must be contributed back to Sawyer or else they will // be clobbered by the next update from Sawyer. The Sawyer repository is at // https://github.com/matzke1/sawyer. #include "Assert.h" #include "Message.h" #include "Sawyer.h" #include namespace Sawyer { namespace Assert { SAWYER_EXPORT AssertFailureHandler assertFailureHandler; SAWYER_EXPORT void fail(const char *mesg, const char *expr, const std::string ¬e, const char *filename, unsigned linenum, const char *funcname) { initializeLibrary(); if (!Message::assertionStream) Message::assertionStream = Message::mlog[Message::FATAL]; *Message::assertionStream <