https://github.com/torvalds/linux
Raw File
Tip revision: 53c8ba95402be65d412a806cda3430f0e72cd107 authored by Linus Torvalds on 05 June 2008, 03:10:44 UTC
Linux 2.6.26-rc5
Tip revision: 53c8ba9
stringify.h
#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 */
back to top