GCC compiler gives me the following macros:
__FILE__
__LINE__
Yes, Microsoft Visual Studio has __FILE__ and __LINE__. Here are more MSVC macros.
Both are ANSI C++.
MSVC has __FUNCTION__, which is Microsoft-specific.
__FUNCTION__