805
The identifier
static const char __func__[] = "function-name";
appeared, where function-name is the name of the lexically-enclosing function.61)
806 This name is encoded as if the implicit declaration had been written in the source character set and then translated into the execution character set as indicated in translation phase 5.
807 EXAMPLE Consider the code fragment:
#include
void myfunc(void)
{
printf("s\n", __func__);
/* ... */
}
Each time the function is called, it will print to the standard output stream:
808 Forward references: function definitions (6.9.1).
809
61) Since the name
Next
Created at: 2005-06-29 02:18:57
The text from WG14/N1124 is copyright © ISO