Add Maintainer and Mailing list contact information to README
[ust.git] / include / ust / kcompat / stringify.h
1 #ifndef __LINUX_STRINGIFY_H
2 #define __LINUX_STRINGIFY_H
3 /*
4 * Copyright (C) 2009 Zhaolei <zhaolei@cn.fujitsu.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation;
9 * version 2.1 of the License.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
20 */
21
22 /* Indirect stringification. Doing two levels allows the parameter to be a
23 * macro itself. For example, compile with -DFOO=bar, __stringify(FOO)
24 * converts to "bar".
25 */
26
27 #define __stringify_1(x...) #x
28 #define __stringify(x...) __stringify_1(x)
29
30 #endif /* !__LINUX_STRINGIFY_H */
This page took 0.029432 seconds and 4 git commands to generate.