packages/Utils/harness/DBC.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Throw a profugus::assertion for Insist macros.
 */
\brief Throw a profugus::assertion for Insist macros.
\ brief Throw a profugus :: assertion for Insist macros .
void insist( const char* const  cond,
             const std::string& msg,
             const char* const  file,
             const int          line)
{
    std::ostringstream myMessage;
    myMessage <<  "Insist: " << cond << ", failed in "
              << file << ":" << line << std::endl
              << "The following message was provided:" << std::endl
              << "\"" << msg << "\"" << std::endl;
    throw assertion( myMessage.str() );
}
void insist ( const char * const cond , const std :: string & msg , const char * const file , const int line ) { std :: ostringstream myMessage ; myMessage << " " << cond << " " << file << " " << line << std :: endl << " " << std :: endl << " \" " << msg << " \" " << std :: endl ; throw assertion ( myMessage . str ( ) ) ; }
\brief Throw a profugus::assertion for Insist macros.
\ brief Throw a profugus :: assertion for Insist macros .