Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:18

0001 #ifndef Utilities_DebugMacros_h
0002 #define Utilities_DebugMacros_h
0003 
0004 #include "FWCore/Utilities/interface/thread_safety_macros.h"
0005 
0006 namespace edm {
0007   struct debugvalue {
0008     debugvalue();
0009 
0010     int operator()() { return value_; }
0011 
0012     const char* cvalue_;
0013     int value_;
0014   };
0015 
0016   CMS_THREAD_SAFE extern debugvalue debugit;
0017 }  // namespace edm
0018 
0019 #define FDEBUG(lev)     \
0020   if (lev <= debugit()) \
0021   std::cerr
0022 
0023 #endif