diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-04 08:32:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-04 08:32:52 +0200 |
commit | 43c1881110b28f42c58d45465a6b8cad06540ad0 (patch) | |
tree | 4b964b15e2ed7e6acd6e375c39e575348fd988a2 /include/linux/stringify.h | |
parent | 849e910d07a2e6d9f1e8562f2d6ce1adf0034c51 (diff) | |
parent | 81d2b141e709505fcdf9a6c4df160894ddf28667 (diff) | |
download | barebox-43c1881110b28f42c58d45465a6b8cad06540ad0.tar.gz barebox-43c1881110b28f42c58d45465a6b8cad06540ad0.tar.xz |
Merge branch 'next'
Diffstat (limited to 'include/linux/stringify.h')
-rw-r--r-- | include/linux/stringify.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/stringify.h b/include/linux/stringify.h new file mode 100644 index 0000000000..841cec8ed5 --- /dev/null +++ b/include/linux/stringify.h @@ -0,0 +1,12 @@ +#ifndef __LINUX_STRINGIFY_H +#define __LINUX_STRINGIFY_H + +/* Indirect stringification. Doing two levels allows the parameter to be a + * macro itself. For example, compile with -DFOO=bar, __stringify(FOO) + * converts to "bar". + */ + +#define __stringify_1(x...) #x +#define __stringify(x...) __stringify_1(x) + +#endif /* !__LINUX_STRINGIFY_H */ |