Saturday, November 12, 2011
Predefined variable __func__ in C++11
In C++11, every function has a local predefined variable __func__ that looks as follows:
static const char __func__[] = "function-name";
This variable can for example be used for logging purposes.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment