patch-2.4.18 linux/include/linux/stringify.h
Next file: linux/include/linux/sunrpc/clnt.h
Previous file: linux/include/linux/sonypi.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Tue Jan 15 00:40:01 2002
- Orig file:
linux.orig/include/linux/stringify.h
- Orig date:
Thu Jan 1 00:00:00 1970
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/include/linux/stringify.h linux/include/linux/stringify.h
@@ -0,0 +1,12 @@
+#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 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)