diff options
| -rw-r--r-- | chad/experimental/bits.h | 8 |
1 files changed, 8 insertions, 0 deletions
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( |
