[PATCH 2/5] wine/debug.h: Make WINE_ERR controlled by WINE_NO_DEBUG_MSGS like other debug macros

Dmitry Timoshkov dmitry at codeweavers.com
Mon Jul 30 09:02:38 CDT 2007


>From c0d88598f74c6275d95986112876a7df26c215cc Mon Sep 17 00:00:00 2001
From: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Mon, 30 Jul 2007 20:56:43 +0900
Subject: [PATCH 2/5] wine/debug.h: Make WINE_ERR controlled by WINE_NO_DEBUG_MSGS like other debug macros

---
 include/wine/debug.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/wine/debug.h b/include/wine/debug.h
index adab558..8d52c66 100644
--- a/include/wine/debug.h
+++ b/include/wine/debug.h
@@ -99,6 +99,8 @@ struct __wine_debug_channel
 #endif
 
 #ifdef WINE_NO_DEBUG_MSGS
+#define WINE_ERR(args...) do { } while(0)
+#define WINE_ERR_(ch) WINE_ERR
 #define WINE_WARN(args...) do { } while(0)
 #define WINE_WARN_(ch) WINE_WARN
 #define WINE_FIXME(args...) do { } while(0)
@@ -124,6 +126,8 @@ struct __wine_debug_channel
 #endif
 
 #ifdef WINE_NO_DEBUG_MSGS
+#define WINE_ERR(...) do { } while(0)
+#define WINE_ERR_(ch) WINE_ERR
 #define WINE_WARN(...) do { } while(0)
 #define WINE_WARN_(ch) WINE_WARN
 #define WINE_FIXME(...) do { } while(0)
@@ -237,8 +241,10 @@ static inline const char *wine_dbgstr_longlong( ULONGLONG ll )
 #endif
 #define WINE_FIXME_ON(ch)          __WINE_IS_DEBUG_ON(_FIXME,&__wine_dbch_##ch)
 
+#ifndef WINE_ERR
 #define WINE_ERR                   __WINE_DPRINTF(_ERR,__wine_dbch___default)
 #define WINE_ERR_(ch)              __WINE_DPRINTF(_ERR,&__wine_dbch_##ch)
+#endif
 #define WINE_ERR_ON(ch)            __WINE_IS_DEBUG_ON(_ERR,&__wine_dbch_##ch)
 
 #define WINE_DECLARE_DEBUG_CHANNEL(ch) \
-- 
1.5.2.3






More information about the wine-patches mailing list