indentlog: allow for multiply STRINGIFY macro defs

This commit is contained in:
Roland Conybeare 2024-03-29 14:52:24 -04:00
commit d42d29fa52

View file

@ -9,7 +9,9 @@
#include <iostream> #include <iostream>
// STRINGIFY(xyz) -> "xyz" // STRINGIFY(xyz) -> "xyz"
#define STRINGIFY(x) #x #ifndef STRINGIFY
# define STRINGIFY(x) #x
#endif
// TAG(xyz) -> tag("xyz", xyz) // TAG(xyz) -> tag("xyz", xyz)
#define TAG(x) xo::make_tag(STRINGIFY(x), x) #define TAG(x) xo::make_tag(STRINGIFY(x), x)