msvc's equivalent of gcc's __BASE_FILE__
c++, gcc, macros, visual-c++
Solution
Doesn't look like there is an equivalent: http://msdn.microsoft.com/en-us/library/b0084kay%28v=vs.80%29.aspx
Problem
Is there any equivalent of `__BASE_FILE__` in Visual C++? I want to know name of the file currently being compiled by VC++. Note: `__FILE__` expands into current file, e.g. it may be one of `#include`s. From gcc's doc: `__BASE_FILE__` This macro expands to the name of the main input file, in the form of a C string constant. This is the source file that was specified as an argument when the C compiler was invoked.