Is there a way to get the name of the current function?

rempas rempas at tutanota.com
Tue Mar 7 22:11:49 UTC 2023


For example, in the given code:

```d
void my_function() {
   import std.stdio;

   writeln("The name of the function is: ", 
<fn_name_macro_or_something>);
}
```

Is there something to put in the place of 
`<fn_name_macro_or_something>` to get the name of the function?


More information about the Digitalmars-d-learn mailing list