1. binet
  2. mana-core-testtools

Source

mana-core-testtools / TestTools / SGassert.h

/***************************************************************************
 macro to assert an error condition
 ----------------------------------
 ATLAS Collaboration
 ***************************************************************************/

// $Id: SGassert.h,v 1.1.1.1 2003-04-02 17:09:42 calaf Exp $


#ifndef TEST_SGASSERT_H
# define TEST_SGASSERT_H

#include <cassert>
#include <iostream>

#define SGASSERT( TRUEEXPR ) assert(TRUEEXPR)
#define SGASSERTERROR( FALSEEXPR )   \
    std::cerr << "Now we expect to see an error message:" << std::endl \
              << "----Error Message Starts--->>" << std::endl; \
    assert(!FALSEEXPR); \
    std::cerr<< "<<---Error Message Ends-------" << std::endl


#endif // TEST_SGASSERT_H