BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/facilities/facilities-00-00-04/facilities/error.h
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// error.h,v 1.1.1.1 1994/04/18 18:12:32 burnett Exp
4//
5// This file is a part of the MC++ Event Generator Toolkit.
6// Copyright (C) 1992 Leif L"onnblad, Anders Nilsson, Mike Seymour.
7//
8// This file declares some error recovery functions.
9//
10
11#ifndef _ERROR_H_
12#define _ERROR_H_
13
14
15#include <strstream>
16
17extern void WARNING(const char *);
18extern void FATAL(const char *);
19
20#define FATAL_MACRO(output)\
21do{std::ostrstream message; \
22 message <<__FILE__<<":"<<__LINE__<<": "<<output<<'\0';\
23::FATAL(message.str()); }while(0)
24
25#define WARNING_MACRO(output)\
26do{std::ostrstream message; \
27 message <<__FILE__<<":"<<__LINE__<<": "<<output<<'\0';\
28::WARNING(message.str()); message.freeze(false); }while(0)
29
30
31#endif // _ERROR_H_
32
void FATAL(const char *)
@ WARNING
Definition: EvtReport.hh:50