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>
|
||||
|
||||
// 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue