Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
__func__ can be used to obtain the name of the current function.
__func__ is -as far is I know- optionally supplied by a compiler, for example by G++.
The example below shows how to display a function name.
Operating system(s) or programming environment(s)
Libraries used:
TEMPLATE = app |
#include <iostream> |
Screen output:
ShowFunc |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml