David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
62bd371
Branches
Tags
c++11
main
start
testcode.git
my_lib
my_lib.cpp
Use __PRETTY_FUNCTION__ and __func__.
David Blume
commited
62bd371
at 2015-11-08 01:17:45
my_lib.cpp
Blame
History
Raw
#include <iostream> #include "../include/my_lib.hpp" using namespace std; int my_lib_fn() { cout << "The function " << __func__ << " was called." << endl; return 0; } int my_lib_fn(int x) { cout << "The function " << __PRETTY_FUNCTION__ << " with parameter " << x << " was called." << endl; return x+1; }