aboutsummaryrefslogtreecommitdiffstats
path: root/cppawk-include/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'cppawk-include/base.h')
-rw-r--r--cppawk-include/base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cppawk-include/base.h b/cppawk-include/base.h
index f22f599..5472233 100644
--- a/cppawk-include/base.h
+++ b/cppawk-include/base.h
@@ -34,6 +34,8 @@
#define __cat(a, b) a ## b
#define __xcat(a, b) __cat(a, b)
+#define __str(x) # x
+#define __xstr(x) __str(x)
#define __g(name) __xcat(name, __LINE__)
#define __error(...) { printf(__VA_ARGS__); print; exit 1 }