aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/preprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/preprocessor.h')
-rw-r--r--gdb/common/preprocessor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/common/preprocessor.h b/gdb/common/preprocessor.h
index 6877344..3543a90 100644
--- a/gdb/common/preprocessor.h
+++ b/gdb/common/preprocessor.h
@@ -24,6 +24,10 @@
#define CONCAT_1(a, b) a ## b
#define CONCAT(a, b) CONCAT_1 (a, b)
+/* Stringification. */
+#define STRINGIFY_1(x) #x
+#define STRINGIFY(x) STRINGIFY_1 (x)
+
/* Escape parens out. Useful if you need to pass an argument that
includes commas to another macro. */
#define ESC(...) __VA_ARGS__