diff options
| author | Selene ToyKeeper | 2018-12-18 14:43:52 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-12-18 14:43:52 -0700 |
| commit | c401894ebea3ed1f9313448324e897b2bf37b8e4 (patch) | |
| tree | c7d13f8bd51387fb6d02a82faaf06270fe55d95e /tk.h | |
| parent | Updated Anduril text file, mostly. (diff) | |
| download | anduril-c401894ebea3ed1f9313448324e897b2bf37b8e4.tar.gz anduril-c401894ebea3ed1f9313448324e897b2bf37b8e4.tar.bz2 anduril-c401894ebea3ed1f9313448324e897b2bf37b8e4.zip | |
Reworked the config file include system so it'll include the #defined value
instead of having to hard-code a bunch of specific recognized values.
Diffstat (limited to '')
| -rw-r--r-- | tk.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |
