From 277f91d1d9e4bff3f0f23247ebbadfed9ed997b4 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Wed, 20 Jun 2012 18:28:33 +0300 Subject: [PATCH] common/macros: added stringifying macro. --- src/common/macros.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/macros.h b/src/common/macros.h index daf7370..69cd22f 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -111,6 +111,9 @@ /** Extract micro version from a version integer. */ #define MRP_VERSION_MICRO(ver) ((ver) & 0xff) +/** Macro to stringify a macro argument. */ +#define MRP_STRINGIFY(arg) #arg + /** C++-compatibility macros. */ #ifdef __cplusplus # define MRP_CDECL_BEGIN extern "C" { -- 2.7.4