From 02c646bfd5dcc65b85896a8486ddedd488bcd0c4 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Fri, 21 Nov 2014 18:57:30 +0000 Subject: [PATCH] fix diagnostic log location --- src/diagnostic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diagnostic.h b/src/diagnostic.h index 1237da073e..15c305daa5 100644 --- a/src/diagnostic.h +++ b/src/diagnostic.h @@ -35,9 +35,9 @@ void diagnostic_log(int diagnosticLevel, const char *format, ...); void diagnostic_log_with_location(int diagnosticLevel, const char *file, const char *function, int line, const char *format, ...); #ifdef _MSC_VER -#define diagnostic_log_macro(level, format, ...) diagnostic_log(level, __FILE__, __FUNCTION__, __LINE__, format, __VA_ARGS__) +#define diagnostic_log_macro(level, format, ...) diagnostic_log_with_location(level, __FILE__, __FUNCTION__, __LINE__, format, __VA_ARGS__) #else -#define diagnostic_log_macro(level, format, ...) diagnostic_log(level, __FILE__, __func__, __LINE__, format, ## __VA_ARGS__) +#define diagnostic_log_macro(level, format, ...) diagnostic_log_with_location(level, __FILE__, __func__, __LINE__, format, ## __VA_ARGS__) #endif #define log_fatal(format, ...) diagnostic_log_macro(DIAGNOSTIC_LEVEL_FATAL, format, __VA_ARGS__)