/ Published in: Objective C
Expand |
Embed | Plain Text
NSLog(@”[%s:%s:%d] Here i am”,__FUNCTION__,__FILE__,__LINE__);
Comments
Subscribe to comments
You need to login to post a comment.
BenClayton on 01/20/10
4 people have marked this snippet as a favorite
Leech
clearbrian
wpellis
Tintenklecks
NSLog(@”[%s:%s:%d] Here i am”,__FUNCTION__,__FILE__,__LINE__);
Subscribe to comments
You need to login to post a comment.
Beware cut and pasting this. The quotes are the ones they use in docs not the one over the number 8 on the mac keyboard. You may need to paste then delete and replace each quote with the one from the number 8 key NSLog(@"[%s:%s:%d] Here i am", FUNCTION,FILE,LINE);