std-aux: add NM_STRINGIFY() macro

(cherry picked from commit 025d6898fe)
This commit is contained in:
Thomas Haller 2024-01-23 11:02:34 +01:00 committed by Beniamino Galvani
parent 157c2ffeee
commit 9fd5a78eb9

View file

@ -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