Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
Utilities
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:
BasicOptionsHandler.h:9
Generated by
1.8.11