Macros can suck my... something hairy
You can't win. I hardly ever use the beggars but when I do everything goes t*ts up.
Basically I've got a set of headers I want to use across several DLL's (so several projects) so I've got this directory structure:
So ignore all of them except SharedLib. Basically it includes several headers and to save me typing "..\SharedLib\Singleton.h" (for example) I'm trying to get a macro like this to work:
ROOT ------ NothDebug
Of course I get "newline in constant" so I replace it with "...\\SharedLib\\" which doesn't work because now it can't find the header "..\\SharedLib\\Singleton.h".
#define SHARED(h) "...\SharedLib\" ## h
I use it like this BTW:
After trying to put #include in the macro which didn't work.
Help! Save my fingers!