summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/buffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libadhocutil/buffer.h b/libadhocutil/buffer.h
index 602d010..fa1b815 100644
--- a/libadhocutil/buffer.h
+++ b/libadhocutil/buffer.h
@@ -117,9 +117,9 @@ class DLL_PUBLIC Buffer : public virtual IntrusivePtrBase {
};
// libmisc compat macros
-#define vstringf Buffer().vappendf
-#define stringf Buffer().appendf
-#define stringbf Buffer().appendbf
+#define vstringf(...) Buffer().vappendf(__VA_ARGS__).str()
+#define stringf(...) Buffer().appendf(__VA_ARGS__).str()
+#define stringbf(...) Buffer().appendbf(__VA_ARGS__).str()
#endif