xref: /aosp_15_r20/external/bpftool/include/linux/stringify.h (revision 858ea5e570667251cdc31d3fe7b846b591105938)
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 
3 #ifndef __LINUX_STRINGIFY_H
4 #define __LINUX_STRINGIFY_H
5 
6 /* Indirect stringification.  Doing two levels allows the parameter to be a
7  * macro itself.  For example, compile with -DFOO=bar, __stringify(FOO)
8  * converts to "bar".
9  */
10 
11 #define __stringify_1(x...)	#x
12 #define __stringify(x...)	__stringify_1(x)
13 
14 #endif
15