aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-xcat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-xcat.h')
-rw-r--r--sim/common/sim-xcat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-xcat.h b/sim/common/sim-xcat.h
index 4abf262..7c3dd16 100644
--- a/sim/common/sim-xcat.h
+++ b/sim/common/sim-xcat.h
@@ -28,14 +28,18 @@
#define CONCAT2(a,b) a##b
#define CONCAT3(a,b,c) a##b##c
#define CONCAT4(a,b,c,d) a##b##c##d
+#define STRINGX(s) #s
#else
#define CONCAT2(a,b) a/**/b
#define CONCAT3(a,b,c) a/**/b/**/c
#define CONCAT4(a,b,c,d) a/**/b/**/c/**/d
+#define STRINGX(s) "?"
#endif
#define XCONCAT2(a,b) CONCAT2(a,b)
#define XCONCAT3(a,b,c) CONCAT3(a,b,c)
#define XCONCAT4(a,b,c,d) CONCAT4(a,b,c,d)
+#define XSTRING(s) STRINGX(s)
+
#endif _SIM_XCAT_H_