From d446b79b0d22e4acc4e1626cf8ab63d09bdc75cd Mon Sep 17 00:00:00 2001 From: anon Date: Sat, 13 Sep 2025 22:40:09 +0200 Subject: +QUOTE() --- chad/experimental/bits.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chad/experimental/bits.h') diff --git a/chad/experimental/bits.h b/chad/experimental/bits.h index 6a27a5b..05ed66c 100644 --- a/chad/experimental/bits.h +++ b/chad/experimental/bits.h @@ -9,9 +9,17 @@ #define MIN(x, y) (((x) < (y)) ? (x) : (y)) #define MAX(x, y) (((x) > (y)) ? (x) : (y)) +/* Convert argument to a string literal. + */ #define _STRINGIFY(...) # __VA_ARGS__ #define STRINGIFY(...) _STRINGIFY(__VA_ARGS__) +/* Prevent argument from being expended as a macro. + * Named after the POSIX shell rule that quoted strings are not checked for aliases. + */ +#define EMPTY() +#define QUOTE(id) id EMPTY() + // could be a generic static inline long map( -- cgit v1.2.3