From 861ac81b3746ee8bda45f68228dbe20955d2eec5 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 14 Oct 2020 23:01:01 +0300 Subject: [PATCH] os2: changes to debug macros --- src/core/os2/SDL_os2.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/os2/SDL_os2.h b/src/core/os2/SDL_os2.h index 1ecaec1a5..6c49076c0 100644 --- a/src/core/os2/SDL_os2.h +++ b/src/core/os2/SDL_os2.h @@ -5,11 +5,13 @@ #include "SDL_stdinc.h" #include "geniconv/geniconv.h" -#if OS2DEBUG==SDLOUTPUT +#ifdef OS2DEBUG +#if (OS2DEBUG-0 >= 2) # define debug(s,...) SDL_LogDebug( SDL_LOG_CATEGORY_APPLICATION, \ __func__"(): "##s, ##__VA_ARGS__ ) -#elif defined(OS2DEBUG) +#else # define debug(s,...) printf( __func__"(): "##s"\n", ##__VA_ARGS__ ) +#endif #else