LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
DebugMacros.h
Go to the documentation of this file.
1
#ifndef canvas_Utilities_DebugMacros_h
2
#define canvas_Utilities_DebugMacros_h
3
// vim: set sw=2 expandtab :
4
5
#include <atomic>
6
#include <iostream>
7
8
namespace
art
{
9
struct
DebugValue
{
10
DebugValue
();
11
12
int
13
operator()
()
14
{
15
return
value_
.load();
16
}
17
18
std::atomic<char const*>
cvalue_
;
19
std::atomic<int>
value_
;
20
};
21
22
extern
DebugValue
debugit
;
23
}
24
25
#define FDEBUG(LEVEL) \
26
if ((LEVEL) <= art::debugit()) \
27
std::cerr
28
29
#endif
/* canvas_Utilities_DebugMacros_h */
30
31
// Local Variables:
32
// mode: c++
33
// End:
art::DebugValue
Definition:
DebugMacros.h:9
art::debugit
DebugValue debugit
Definition:
DebugMacros.cc:14
art::DebugValue::DebugValue
DebugValue()
Definition:
DebugMacros.cc:8
art::DebugValue::cvalue_
std::atomic< char const * > cvalue_
Definition:
DebugMacros.h:18
art::DebugValue::operator()
int operator()()
Definition:
DebugMacros.h:13
art::DebugValue::value_
std::atomic< int > value_
Definition:
DebugMacros.h:19
art
Definition:
MVAAlg.h:12
canvas
Utilities
DebugMacros.h
Generated on Thu May 2 2024 20:59:31 for LArSoft by
1.8.11