From: Mark Wooding Date: Sat, 5 Nov 2016 21:28:22 +0000 (+0000) Subject: base/asm-common.h: Add some general C preprocessor utilities. X-Git-Tag: 2.3.0~22 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/898f32b33bea7f1e26c8ba906facdd5038edcd57 base/asm-common.h: Add some general C preprocessor utilities. --- diff --git a/base/asm-common.h b/base/asm-common.h index e5e0f2f2..77dd6a72 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -27,6 +27,13 @@ ///-------------------------------------------------------------------------- /// General definitions. +// Preprocessor hacks. +#define STRINGY(x) _STRINGY(x, y) +#define _STRINGY(x) #x +#define GLUE(x, y) _GLUE(x, y) +#define _GLUE(x, y) x##y +#define _EMPTY + // Some useful variables. .L$_subsec = 0