diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-01-14 14:31:34 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2015-01-14 14:32:09 -0200 |
commit | bf2fbabb9e7abec9116c0fb2a387b59d0e950d34 (patch) | |
tree | cb7c5717b6891743bc09c39c30c37c6ba51196ec | |
parent | af87874f9cb077217212e3d4e625b745cf35396f (diff) | |
download | kmod-bf2fbabb9e7abec9116c0fb2a387b59d0e950d34.tar.gz |
shared: add STRINGFY macro
-rw-r--r-- | shared/macro.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/macro.h b/shared/macro.h index 16b0881..a081a49 100644 --- a/shared/macro.h +++ b/shared/macro.h @@ -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) |