summaryrefslogtreecommitdiffstats
path: root/Tools/ProtoProxy/Connection.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2020-05-05 23:52:14 +0200
committerGitHub <noreply@github.com>2020-05-05 23:52:14 +0200
commit57952505e522be868a5a8270d8670163b55ebade (patch)
treecf3c5544612b8a51075b498fa14dba8fe758d656 /Tools/ProtoProxy/Connection.h
parentRequire semi-colon at end of function-like macros (#4719) (diff)
downloadcuberite-57952505e522be868a5a8270d8670163b55ebade.tar
cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.gz
cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.bz2
cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.lz
cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.xz
cuberite-57952505e522be868a5a8270d8670163b55ebade.tar.zst
cuberite-57952505e522be868a5a8270d8670163b55ebade.zip
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);