From 025d6898fed452d9de07d09086f836dfb144319a Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 23 Jan 2024 11:02:34 +0100 Subject: [PATCH] std-aux: add NM_STRINGIFY() macro --- src/libnm-std-aux/nm-std-aux.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index 3b39a0194..1e2941830 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -83,6 +83,11 @@ /*****************************************************************************/ +#define NM_STRINGIFY_ARG(contents) #contents +#define NM_STRINGIFY(macro_or_string) NM_STRINGIFY_ARG(macro_or_string) + +/*****************************************************************************/ + #ifndef _NM_CC_SUPPORT_AUTO_TYPE #if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9))) #define _NM_CC_SUPPORT_AUTO_TYPE 1