From 597a4b33a700773032038051abc4f9f5e92942bd Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 2 Feb 2023 13:27:10 +0100 Subject: [PATCH] Macro: stringify --- lib/macro.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/macro.h b/lib/macro.h index 24fc3393..8f5d4b0e 100644 --- a/lib/macro.h +++ b/lib/macro.h @@ -26,6 +26,8 @@ #define MACRO_DROP(...) #define MACRO_UNPAREN(...) __VA_ARGS__ #define MACRO_SEP(a, b, sep) a sep b +#define MACRO_STR(a) #a +#define MACRO_STR_AFTER(a) MACRO_STR(a) /* Aliases for some special chars */ #define MACRO_COMMA ,