packages/Utils/harness/DBC.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Throw a profugus::assertion for Validate macros.
 * \return Throws an assertion.
 * \note We do not provide unit tests for functions whose purpose is to throw
 * or exit.
 */
\brief Throw a profugus::assertion for Validate macros.
\return Throws an assertion.
\note We do not provide unit tests for functions whose purpose is to throw
or exit.
\ brief Throw a profugus :: assertion for Validate macros . \ return Throws an assertion . \ note We do not provide unit tests for functions whose purpose is to throw or exit .
void toss_validation_cookies(
        const std::string& msg,
        const char*        file,
        int                line)
{
    std::ostringstream out;
    out << msg;
#if UTILS_DBC > 0
    out << "\n ^^^ at " << file << ":" << line << "\n";
#else
    (void)sizeof(file);
    (void)sizeof(line);
#endif
    throw validation_error(out.str());
}
void toss_validation_cookies ( const std :: string & msg , const char * file , int line ) { std :: ostringstream out ; out << msg ; #if UTILS_DBC > 0 out << " \n " << file << " " << line << " \n " ; #else ( void ) sizeof ( file ) ; ( void ) sizeof ( line ) ; #endif throw validation_error ( out . str ( ) ) ; }
\brief Throw a profugus::assertion for Validate macros.
\ brief Throw a profugus :: assertion for Validate macros .
// Debug mode is off, so don't trouble the user with the particulars