Go to the documentation of this file. 23 #ifndef COM_DAFER45_TBTK_MACRO 24 #define COM_DAFER45_TBTK_MACRO 31 #define TBTKAssert(expression, function, message, hint) \ 33 TBTK::Util::Streams::err << "Error in " << function << "\n"; \ 34 TBTK::Util::Streams::err << "\t" << message << "\n"; \ 35 std::stringstream hintStream; \ 37 if(std::strcmp(hintStream.str().c_str(), "") != 0) \ 38 TBTK::Util::Streams::err << "\tHint: " << hint << "\n"; \ 39 TBTK::Util::Streams::err << "\tWhere: " << __FILE__ << ", " << __LINE__ << "\n"; \ 40 if(Util::Streams::logIsOpen()) \ 41 Util::Streams::closeLog(); \ 45 #define TBTKExit(function, message, hint) \ 46 TBTK::Util::Streams::err << "Error in " << function << "\n"; \ 47 TBTK::Util::Streams::err << "\t" << message << "\n"; \ 48 std::stringstream hintStream; \ 50 if(std::strcmp(hintStream.str().c_str(), "") != 0) \ 51 TBTK::Util::Streams::err << "\tHint: " << hint << "\n"; \ 52 TBTK::Util::Streams::err << "\tWhere: " << __FILE__ << ", " << __LINE__ << "\n"; \ 53 if(Util::Streams::logIsOpen()) \ 54 Util::Streams::closeLog(); \ 57 #define TBTKNotYetImplemented(function) \ 58 TBTK::Util::Streams::err << "Error in " << function << "\n"; \ 59 TBTK::Util::Streams::err << "\tNot yet implemented.\n"; \ 60 TBTK::Util::Streams::err << "\tWhere: " << __FILE__ << ", " << __LINE__ << "\n"; \ 61 if(Util::Streams::logIsOpen()) \ 62 Util::Streams::closeLog(); \