Can I get caller name?

AsmMan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 25 22:59:32 PDT 2014


for debugging purposes, I need to get the caller name. Is it 
possible? if so, how do I do this?

void foo()
{
   baa();
}

void baa()
{
   wrilten(caller_name()); // foo
}

I know I could create an extra parameter and pass the current 
function name as argument but it isn't a possibility for now.


More information about the Digitalmars-d-learn mailing list