diff options
Diffstat (limited to 'CDAL/Debug.h')
-rw-r--r-- | CDAL/Debug.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CDAL/Debug.h b/CDAL/Debug.h index 69e5112..cb3a503 100644 --- a/CDAL/Debug.h +++ b/CDAL/Debug.h @@ -13,9 +13,9 @@ #pragma once //#define _DEBUG +#define DEBUG_ERROR #ifdef _DEBUG #define DEBUG_INFO -#define DEBUG_ERROR #define DEBUG_HEXDUMP #define DEBUG_HEXDUMP_SIZE 1024 #endif @@ -35,7 +35,11 @@ class Debug { public: +#ifdef _WIN32 + inline static void error(const char* format, ...) { +#else inline static void error(const char* format, ...) __attribute__((format(printf, 1, 0))) { +#endif #ifdef DEBUG_ERROR flockfile(stdout); printf("ERROR - "); @@ -49,7 +53,11 @@ public: #endif } +#ifdef _WIN32 + static inline void info(const char* format, ...) { +#else static inline void info(const char* format, ...) __attribute__((format(printf, 1, 0))) { +#endif #ifdef DEBUG_INFO flockfile(stdout); printf("INFO - "); |