Can I get caller name?

2014-09-25 Thread AsmMan via Digitalmars-d-learn
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.

Re: Can I get caller name?

2014-09-25 Thread ketmar via Digitalmars-d-learn
On Fri, 26 Sep 2014 05:59:32 + AsmMan via Digitalmars-d-learn wrote: > for debugging purposes, I need to get the caller name. Is it > possible? if so, how do I do this? use debugger? or parse debugging info and do stackwalk. signature.asc Description: PGP signature

Re: Can I get caller name?

2014-09-25 Thread Vladimir Panteleev via Digitalmars-d-learn
On Friday, 26 September 2014 at 05:59:33 UTC, AsmMan wrote: 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 fu

Re: Can I get caller name?

2014-09-26 Thread AsmMan via Digitalmars-d-learn
Thanks guys!