https://github.com/torvalds/linux
Raw File
Tip revision: 431c1646e1f86b949fa3685efc50b660a364c2b6 authored by Linus Torvalds on 01 September 2024, 07:46:02 UTC
Linux 6.11-rc6
Tip revision: 431c164
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)

#define FILE_LINE	__FILE__ ":" __stringify(__LINE__)

#endif	/* !__LINUX_STRINGIFY_H */
back to top