summaryrefslogtreecommitdiffstats
path: root/testprogs/win32/spoolss/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/win32/spoolss/string.h')
-rw-r--r--testprogs/win32/spoolss/string.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/testprogs/win32/spoolss/string.h b/testprogs/win32/spoolss/string.h
new file mode 100644
index 0000000..17561eb
--- /dev/null
+++ b/testprogs/win32/spoolss/string.h
@@ -0,0 +1,15 @@
+/* __location__ macro replacement taken from talloc.h */
+
+/*
+ this uses a little trick to allow __LINE__ to be stringified
+*/
+#ifndef __location__
+#define __STRING_LINE1__(s) #s
+#define __STRING_LINE2__(s) __STRING_LINE1__(s)
+#define __STRING_LINE3__ __STRING_LINE2__(__LINE__)
+#define __location__ __FILE__ ":" __STRING_LINE3__
+#endif
+
+#ifndef __STRING
+#define __STRING(s) #s
+#endif