diff options
| author | Selene ToyKeeper | 2018-12-18 15:08:05 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-12-18 15:08:05 -0700 |
| commit | a1713978973d478a974387c52f6e00190d4a274c (patch) | |
| tree | d5e5989026a87036610f404d2cd87b3805d4655b /tk.h | |
| parent | merged updates from fsm branch (diff) | |
| parent | merged include-fix branch, cleans up how include files / config files get pul... (diff) | |
| download | anduril-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.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 |
