]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Updates to DebugGuard
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 May 2012 22:55:40 +0000 (22:55 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 May 2012 22:55:40 +0000 (22:55 +0000)
PWGLF/FORWARD/analysis2/AliForwardUtil.h

index 0748a6afbea2470187e87d4a84916692c7348652..8eae47aa9d7293ce9ec4be8aed33987879a9c9b3 100644 (file)
@@ -632,8 +632,10 @@ public:
   {
     DebugGuard(Int_t lvl, Int_t msgLvl, const char* format, ...);
     ~DebugGuard();
+    static void Message(Int_t lvl, Int_t msgLvl, const char* format, ...);
   private:
-    void Format(bool in);
+    static void Output(int in, TString& msg);
+    static void Format(TString& out, const char* format, va_list ap);
     TString fMsg;
   };
 private:
@@ -646,12 +648,14 @@ private:
   ClassDef(AliForwardUtil,1) // Utilities - do not make object
 };
 
-#ifdef LOG_NO_DEBUG
-# define DGUARD(L,N,F,...) do {} while(false) 
-#else
+// #ifdef LOG_NO_DEBUG
+// # define DGUARD(L,N,F,...) do {} while(false) 
+// #else
 # define DGUARD(L,N,F,...)                                     \
   AliForwardUtil::DebugGuard _GUARD(L,N,F, ## __VA_ARGS__)
-#endif
+# define DMSG(L,N,F,...)                                       \
+  AliForwardUtil::DebugGuard::Message(L,N,F, ## __VA_ARGS__)
+// #endif
 #endif
 // Local Variables:
 //  mode: C++