Continued from the last question here: Log method name in Obj-C . I just wondered if there is a way to print out the variable name as well. For example:
NSS
#define logIntVariable(x) NSLog( @"Value of %s = %d",#x, x) - (void) myRoutine { int intValue = 5; logIntVariable(intValue); }