From 898f32b33bea7f1e26c8ba906facdd5038edcd57 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 5 Nov 2016 21:28:22 +0000 Subject: [PATCH] base/asm-common.h: Add some general C preprocessor utilities. --- base/asm-common.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.11.0