xref: /kvmtool/include/linux/stringify.h (revision 7e841c883d9f342d822cb819c56b6cd7b6f5c973)
1*7e841c88SAndre Przywara #ifndef __LINUX_STRINGIFY_H
2*7e841c88SAndre Przywara #define __LINUX_STRINGIFY_H
3*7e841c88SAndre Przywara 
4*7e841c88SAndre Przywara /* Indirect stringification.  Doing two levels allows the parameter to be a
5*7e841c88SAndre Przywara  * macro itself.  For example, compile with -DFOO=bar, __stringify(FOO)
6*7e841c88SAndre Przywara  * converts to "bar".
7*7e841c88SAndre Przywara  */
8*7e841c88SAndre Przywara 
9*7e841c88SAndre Przywara #define __stringify_1(x...)	#x
10*7e841c88SAndre Przywara #define __stringify(x...)	__stringify_1(x)
11*7e841c88SAndre Przywara 
12*7e841c88SAndre Przywara #endif	/* !__LINUX_STRINGIFY_H */
13