From cc3179046eb9b0a5e9f27572de1195ac8acf4766 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 26 Jan 2015 14:15:12 +0100 Subject: [PATCH] Allow LogWriter objects to be used with va_list argument --- common/rfb/LogWriter.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/rfb/LogWriter.h b/common/rfb/LogWriter.h index 23e3069c..6b85a85c 100644 --- a/common/rfb/LogWriter.h +++ b/common/rfb/LogWriter.h @@ -36,6 +36,10 @@ // is assigned a particular log level. #define DEF_LOGFUNCTION(name, level) \ + inline void name(const char* fmt, va_list ap) { \ + if (m_log && (level <= m_level)) \ + m_log->write(level, m_name, fmt, ap);\ + } \ inline void name(const char* fmt, ...) __printf_attr(2, 3) { \ if (m_log && (level <= m_level)) { \ va_list ap; va_start(ap, fmt); \ -- 2.39.5