/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/facilities/facilities-00-00-04/facilities/error.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // error.h,v 1.1.1.1 1994/04/18 18:12:32 burnett Exp
00004 //
00005 // This file is a part of the MC++ Event Generator Toolkit.
00006 // Copyright (C) 1992 Leif L"onnblad, Anders Nilsson, Mike Seymour.
00007 //
00008 // This file declares some error recovery functions.
00009 //
00010 
00011 #ifndef _ERROR_H_
00012 #define _ERROR_H_
00013 
00014 
00015 #include <strstream>
00016 
00017 extern void WARNING(const char *);
00018 extern void FATAL(const char *);
00019 
00020 #define FATAL_MACRO(output)\
00021 do{std::ostrstream message; \
00022    message <<__FILE__<<":"<<__LINE__<<": "<<output<<'\0';\
00023 ::FATAL(message.str()); }while(0)
00024 
00025 #define WARNING_MACRO(output)\
00026 do{std::ostrstream message; \
00027    message <<__FILE__<<":"<<__LINE__<<": "<<output<<'\0';\
00028 ::WARNING(message.str()); message.freeze(false); }while(0)
00029 
00030 
00031 #endif // _ERROR_H_
00032 

Generated on Tue Nov 29 22:57:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7