DebugMacros.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 #include <cstdlib>
5 
6 namespace art {
7 
9  {
10  cvalue_ = getenv("PROC_DEBUG");
11  value_ = (cvalue_.load() == nullptr) ? 0 : atoi(cvalue_.load());
12  }
13 
15 
16 } // namespace art
DebugValue debugit
Definition: DebugMacros.cc:14
std::atomic< char const * > cvalue_
Definition: DebugMacros.h:18
std::string getenv(std::string const &name)
Definition: getenv.cc:15
std::atomic< int > value_
Definition: DebugMacros.h:19