shared: add STRINGFY macro

This commit is contained in:
Lucas De Marchi 2015-01-14 14:31:34 -02:00
parent af87874f9c
commit bf2fbabb9e

View File

@ -45,6 +45,8 @@
})
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + _array_size_chk(arr))
#define XSTRINGIFY(x) #x
#define STRINGIFY(x) XSTRINGIFY(x)
/* Temporaries for importing index handling */
#define NOFAIL(x) (x)