10 #ifndef HEPMC3_ERRORS_H
11 #define HEPMC3_ERRORS_H
23 #define HEPMC3_ERROR(MESSAGE) if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; }
26 #define HEPMC3_WARNING(MESSAGE) if ( Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; }
29 #ifndef HEPMC3_RELEASE_VERSION
32 #define HEPMC3_DEBUG(LEVEL,MESSAGE) if( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; }
34 #define HEPMC3_DEBUG_CODE_BLOCK( x ) x
38 #define HEPMC3_DEBUG( x,y )
39 #define HEPMC3_DEBUG_CODE_BLOCK( x )