HepMC3 event record library
|
Implementation of error and HEPMC3_HEPMC3_WARNING macros. More...
#include <iostream>
#include <stdexcept>
Go to the source code of this file.
Namespaces | |
HepMC3 | |
HepMC3 main namespace. | |
Macros | |
Printing macros | |
#define | HEPMC3_ERROR(MESSAGE) if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; } |
Macro for printing error messages. More... | |
#define | HEPMC3_WARNING(MESSAGE) if ( Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; } |
Macro for printing HEPMC3_HEPMC3_WARNING messages. More... | |
#define | HEPMC3_DEBUG(LEVEL, MESSAGE) if( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; } |
Macro for printing debug messages with appropriate debug level. More... | |
#define | HEPMC3_DEBUG_CODE_BLOCK(x) x |
Macro for storing code useful for debugging. More... | |
Implementation of error and HEPMC3_HEPMC3_WARNING macros.
Definition in file Errors.h.
#define HEPMC3_DEBUG | ( | LEVEL, | |
MESSAGE | |||
) | if( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; } |
#define HEPMC3_DEBUG_CODE_BLOCK | ( | x | ) | x |
#define HEPMC3_ERROR | ( | MESSAGE | ) | if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; } |