jweinst1
3/21/2020 - 5:11 PM

printing a function name in C++

printing a function name in C++

#include <iostream>

static void fooBar() {
    std::cout << "Calling " << __func__;
}