diff dmutil.h @ 47:9909014498f0

Add helper functions dmError() and dmMsg() and use them.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2019 23:52:45 +0200
parents 03b86b9c2f29
children 03aa729a9e90
line wrap: on
line diff
--- a/dmutil.h	Thu Dec 05 22:45:21 2019 +0200
+++ b/dmutil.h	Thu Dec 05 23:52:45 2019 +0200
@@ -13,9 +13,16 @@
 #include <vector>
 #include <cstdio>
 #include <iostream>
+#include <cstdarg>
 
 
-#define DMUTIL_WHITESPACE           "\t\n\v\f\r "
+#define DMUTIL_WHITESPACE "\t\n\v\f\r "
+
+
+void dmMsg_V(const char *fmt, va_list ap);
+void dmMsg(const char *fmt, ...);
+void dmError_V(const char *fmt, va_list ap);
+void dmError(const char *fmt, ...);
 
 
 std::string dmStrLTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE);