From b96acad0cab96002d43d55a692d426f20b169072 Mon Sep 17 00:00:00 2001 From: Madthijs Date: Tue, 4 May 2021 18:11:03 +0200 Subject: [PATCH] logging fix --- .../xcshareddata/xcschemes/AerofoilMac.xcscheme | 6 ++++++ AerofoilX/GpFileSystem_X.cpp | 2 -- AerofoilX/GpLogDriver_X.cpp | 9 +++++++-- GpCommon/IGpLogDriver.h | 16 ---------------- 4 files changed, 13 insertions(+), 20 deletions(-) diff --git a/AerofoilMac/AerofoilMac.xcodeproj/xcshareddata/xcschemes/AerofoilMac.xcscheme b/AerofoilMac/AerofoilMac.xcodeproj/xcshareddata/xcschemes/AerofoilMac.xcscheme index e5a33fa..e8c8de1 100644 --- a/AerofoilMac/AerofoilMac.xcodeproj/xcshareddata/xcschemes/AerofoilMac.xcscheme +++ b/AerofoilMac/AerofoilMac.xcodeproj/xcshareddata/xcschemes/AerofoilMac.xcscheme @@ -50,6 +50,12 @@ ReferencedContainer = "container:AerofoilMac.xcodeproj"> + + + + Write(charBuff, formattedSize); diff --git a/GpCommon/IGpLogDriver.h b/GpCommon/IGpLogDriver.h index 183571b..f70d7b8 100644 --- a/GpCommon/IGpLogDriver.h +++ b/GpCommon/IGpLogDriver.h @@ -15,24 +15,9 @@ struct IGpLogDriver virtual void VPrintf(Category category, const char *fmt, va_list args) = 0; virtual void Shutdown() = 0; - #ifdef __MACOS__ - template - void Printf(C category, F *fmt, T... t); - #else void Printf(Category category, const char *fmt, ...); - #endif - }; -//this is temp, but args lose their types for some reason, garbling output -#ifdef __MACOS__ -template -inline void IGpLogDriver::Printf(C category, F *fmt, T... t) -{ - printf(fmt, t...); - printf("\n"); -} -#else inline void IGpLogDriver::Printf(Category category, const char *fmt, ...) { va_list args; @@ -40,4 +25,3 @@ inline void IGpLogDriver::Printf(Category category, const char *fmt, ...) this->VPrintf(category, fmt, args); va_end(args); } -#endif