From 0c510e6603e77811e6575497d37f68789f63eb82 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 8 Feb 2020 12:07:37 +0000 Subject: [PATCH] Don't use wine debug functions in release mode (WIP) Signed-off-by: falkTX --- asio.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/asio.c b/asio.c index 6e5dd9c..965801d 100644 --- a/asio.c +++ b/asio.c @@ -30,7 +30,16 @@ #include #include +#ifdef DEBUG #include "wine/debug.h" +#else +// FIXME convert MESSAGE, WARN and ERR into proper macros with fprintf +#define TRACE(...) {} +#define MESSAGE(...) {} +#define WARN(...) {} +#define ERR(...) {} +#endif + #include "objbase.h" #include "mmsystem.h" #include "winreg.h" @@ -42,7 +51,9 @@ #define IEEE754_64FLOAT 1 #include "asio.h" +#ifdef DEBUG WINE_DEFAULT_DEBUG_CHANNEL(asio); +#endif #define MAX_ENVIRONMENT_SIZE 6 #define ASIO_MAX_NAME_LENGTH 32 @@ -1016,7 +1027,9 @@ HIDDEN ASIOError STDMETHODCALLTYPE CreateBuffers(LPWINEASIO iface, ASIOBufferInf else { if (This->asio_current_buffersize == bufferSize) + { TRACE("Buffer size already set to %i\n", This->asio_current_buffersize); + } else { This->asio_current_buffersize = bufferSize;