summaryrefslogtreecommitdiffstats
path: root/Tools/ProtoProxy/Connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/ProtoProxy/Connection.h')
-rw-r--r--Tools/ProtoProxy/Connection.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/Tools/ProtoProxy/Connection.h b/Tools/ProtoProxy/Connection.h
index 3b9127530..e52e1fa6d 100644
--- a/Tools/ProtoProxy/Connection.h
+++ b/Tools/ProtoProxy/Connection.h
@@ -59,11 +59,21 @@ public:
void Run(void);
- void Log(const char * a_Format, fmt::ArgList);
- FMT_VARIADIC(void, Log, const char *)
+ void vLog(const char * a_Format, fmt::printf_args);
- void DataLog(const void * a_Data, size_t a_Size, const char * a_Format, fmt::ArgList);
- FMT_VARIADIC(void, DataLog, const void *, size_t, const char *)
+ template <typename... Args>
+ void Log(const char * a_Format, const Args & ... a_Args)
+ {
+ vLog(a_Format, fmt::make_printf_args(a_Args...));
+ }
+
+ void vDataLog(const void * a_Data, size_t a_Size, const char * a_Format, fmt::printf_args);
+
+ template <typename... Args>
+ void DataLog(const void * a_Data, size_t a_Size, const char * a_Format, const Args & ... a_Args)
+ {
+ vDataLog(a_Data, a_Size, a_Format, fmt::make_printf_args(a_Args...));
+ }
void LogFlush(void);