Is there anyway to get __FILE__ to be expanded when a macro is created vs when the macro is referenced.
For example suppose I have
#define HNAME __FILE__
In a header file that is included in a .c file.
If I access HNAME, in the .c file the __FILE__ will get expanded to be the name of the .c file rather than the .h file.
Is there anyway around this?
I've tried several things including trying to use argument prescan but haven't been able to find anything that works.
--- bill