From d42d29fa52fe1f1f7d3e9dbd9f38f9d56c638807 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 29 Mar 2024 14:52:24 -0400 Subject: [PATCH] indentlog: allow for multiply STRINGIFY macro defs --- include/xo/indentlog/print/tag.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/xo/indentlog/print/tag.hpp b/include/xo/indentlog/print/tag.hpp index 7d4a0abc..de6a9d75 100644 --- a/include/xo/indentlog/print/tag.hpp +++ b/include/xo/indentlog/print/tag.hpp @@ -9,7 +9,9 @@ #include // STRINGIFY(xyz) -> "xyz" -#define STRINGIFY(x) #x +#ifndef STRINGIFY +# define STRINGIFY(x) #x +#endif // TAG(xyz) -> tag("xyz", xyz) #define TAG(x) xo::make_tag(STRINGIFY(x), x)