How to have a macro kind of thing in C++ for having a function name and line number in the debugging info. For example
std::cout << "F:" << __FUNCTION__ << ":L:" << __LINE__ << ":"
<< "Doing specific operation" << std::endl;
In the above statement, I would like to have some shorter notation for
"F:" << __FUNCTION__ << ":L:" << __LINE__ << ":"
in order to replace the same with an alias. I should be able to use the alias through out the function for logging purposes.