// #include "HepTuple/Exceptions.h" // #include "Exceptions/ZMexception.h" // #include "Exceptions/ZMthrow.h" #ifndef ZMEXCEPTION_H #define ZMEXCEPTION_H #include "ZMutility/iostream" #ifndef WIN32 #define ZMthrow(Exception) { \ std::cerr << "At " << __FILE__ << "," << __LINE__ << " tried to throw\n"; \ std::cerr << #Exception << "\n"; \ exit(-1); } #else // Microsoft C preprocessor does not work very well #define ZMthrow(Exception) { \ std::cerr << "At " << __FILE__ << "," << __LINE__ << " tried to throw\n"; \ std::cerr << "an exception" << "\n"; \ exit(-1); } #endif #endif // ZMEXCEPTION_H