aboutsummaryrefslogtreecommitdiff
path: root/tk.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-12-18 15:08:05 -0700
committerSelene ToyKeeper2018-12-18 15:08:05 -0700
commita1713978973d478a974387c52f6e00190d4a274c (patch)
treed5e5989026a87036610f404d2cd87b3805d4655b /tk.h
parentmerged updates from fsm branch (diff)
parentmerged include-fix branch, cleans up how include files / config files get pul... (diff)
downloadanduril-a1713978973d478a974387c52f6e00190d4a274c.tar.gz
anduril-a1713978973d478a974387c52f6e00190d4a274c.tar.bz2
anduril-a1713978973d478a974387c52f6e00190d4a274c.zip
merged include-fix branch for cleaner config file mechanisms
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