aboutsummaryrefslogtreecommitdiff
path: root/tk.h
diff options
context:
space:
mode:
Diffstat (limited to 'tk.h')
-rw-r--r--tk.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tk.h b/tk.h
new file mode 100644
index 0000000..b61db08
--- /dev/null
+++ b/tk.h
@@ -0,0 +1,17 @@
+#ifndef TK_H
+#define TK_H
+
+/////
+// tk.h
+// misc tricks which need to be available before other includes,
+// but which don't need to be repeated in every source file
+////
+
+// create a way to include files defined at the command line,
+// like with "gcc -DCONFIGFILE=foo.h"
+#define incfile2(s) #s
+#define incfile(s) incfile2(s)
+// use it like this:
+//#include incfile(CONFIGFILE)
+
+#endif