diff options
| author | Selene ToyKeeper | 2018-12-18 15:02:39 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-12-18 15:02:39 -0700 |
| commit | e966d935f005b230ee67f7afd64a49a9ca5e10b2 (patch) | |
| tree | 37e043ec7a083ddbfbffb35844279318afc6dddb /tk.h | |
| parent | Updated Anduril text file, mostly. (diff) | |
| parent | Updated the rest of the FSM interfaces to use the new config file system. (diff) | |
| download | anduril-e966d935f005b230ee67f7afd64a49a9ca5e10b2.tar.gz anduril-e966d935f005b230ee67f7afd64a49a9ca5e10b2.tar.bz2 anduril-e966d935f005b230ee67f7afd64a49a9ca5e10b2.zip | |
merged include-fix branch, cleans up how include files / config files get pulled in
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 |
