BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/facilities/include/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
#include <strstream>
15
16
extern
void
WARNING
(
const
char
* );
17
extern
void
FATAL
(
const
char
* );
18
19
#define FATAL_MACRO( output ) \
20
do { \
21
std::ostrstream message; \
22
message << __FILE__ << ":" << __LINE__ << ": " << output << '\0'; \
23
::FATAL( message.str() ); \
24
} while ( 0 )
25
26
#define WARNING_MACRO( output ) \
27
do { \
28
std::ostrstream message; \
29
message << __FILE__ << ":" << __LINE__ << ": " << output << '\0'; \
30
::WARNING( message.str() ); \
31
message.freeze( false ); \
32
} while ( 0 )
33
34
#endif
// _ERROR_H_
FATAL
void FATAL(const char *)
WARNING
@ WARNING
Definition
EvtReport.hh:50
8.0.0
BOSS_Source
Calibration
facilities
include
facilities
error.h
Generated by
1.16.1