Name of current function/selector
Name of current function/selector
- Subject: Name of current function/selector
- From: Lawrence Sanbourne <email@hidden>
- Date: Sat, 22 Oct 2005 12:02:30 -0500
Hi,
I'd like to write a fancy macro that automates the process of making
NSLog statments like this:
+ (id)classMethod
{
NSLog(@"+[ClassName classMethod]: some error occurred");
}
- (id)instanceMethod:(id)arg
{
NSLog(@"-[ClassName instanceMethod:]: some error occurred");
}
int f(x)
{
NSLog(@"f(): some error occurred");
}
Ideally I'd like the macro syntax to look like this:
LSLog("some error occurred");
And then it would check the current context to decide how to output
the log message. Is this even possible?
Larry
--
Larry Sanbourne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden