__FILE__ macro returns full path - solution

I have never spent too much time exploring pre-processor directives but I happened across this one.

HEY VERY COOL!

For any who has not explored the full range or pre-processor directives.....

#line 1 "CString.h"

Just stick this directive at the top of each of your source files and change the file name to yours.

All subsequent uses of FILE pre-defined macro will use "CString.h" rather than the full path of your file.

All subsequent uses of LINE pre-defined macros will be incremented from the 1 or whatever value you have specified.

You can also do this F(FILE)

Hmmmmmh ...

I always thought the purpose of the FILE macro was so that you would NOT have to put the name of the file in your code and would not have the problem of forgetting to update the file name in your code.

...R