GCC compiler gives me the following macros:
__FILE__
__LINE__
For more portability in getting the current function name, you can try BOOST_CURRENT_FUNCTION.