summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2015-01-14 14:31:34 -0200
committerLucas De Marchi <lucas.demarchi@intel.com>2015-01-14 14:32:09 -0200
commitbf2fbabb9e7abec9116c0fb2a387b59d0e950d34 (patch)
treecb7c5717b6891743bc09c39c30c37c6ba51196ec
parentaf87874f9cb077217212e3d4e625b745cf35396f (diff)
downloadkmod-bf2fbabb9e7abec9116c0fb2a387b59d0e950d34.tar.gz
shared: add STRINGFY macro
-rw-r--r--shared/macro.h2
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)