Is there a type of __THIS__ construct similar to __FILE__ and __LINE__?

Something that returns the current this ptr if it exists, null otherwise.

Log(string filename = __FILE__, Object obj = __THIS__)()
{
   // inspect obj and do stuff
}

Reply via email to