www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What function am I in?

reply =?iso-8859-2?B?VG9tZWsgU293afFza2k=?= <just ask.me> writes:
Is there a generic way to get the name of the function I'm currently in?  
Basically I want something working like __FILE__ or __LINE__.


Tomek
Jan 17 2010
parent "Simen kjaeraas" <simen.kjaras gmail.com> writes:
On Sun, 17 Jan 2010 19:42:00 +0100, Tomek Sowi=C5=84ski <just ask.me> wr=
ote:

 Is there a generic way to get the name of the function I'm currently i=
n? =
 Basically I want something working like __FILE__ or __LINE__.


 Tomek
Nope. I believe someone made a template that creates this somehow, thoug= h. -- = Simen
Jan 17 2010