indentlog: allow for multiply STRINGIFY macro defs
This commit is contained in:
parent
dd2a897192
commit
d42d29fa52
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue