Permalink
Browse files

Now works again on Simulator

  • Loading branch information...
1 parent 140c628 commit 726e244375ad6888293516488737e2bc04ba321a @holtwick committed Oct 31, 2010
Showing with 4 additions and 5 deletions.
  1. +1 −1 HOLog.h
  2. +3 −4 HOLog.m
View
2 HOLog.h
@@ -11,7 +11,7 @@
#include <execinfo.h>
#include <stdio.h>
-NSString *HOGetMethodCallWithArguments(id *__selfPtr, SEL __cmd, char countCalls);
+NSString *HOGetMethodCallWithArguments(id *__selfPtr, SEL __cmd);
#define HOLogPing \
NSLog(@"%@", HOGetMethodCallWithArguments(&self, _cmd));
View
7 HOLog.m
@@ -21,7 +21,7 @@
output = [output stringByAppendingFormat:@" %@:(%s)" fmt, [parts objectAtIndex:i - 2], #type, *v]; \
stack += sizeof(type); }
-NSString *HOGetMethodCallWithArguments(id *__selfPtr, SEL __cmd, char countCalls) {
+NSString *HOGetMethodCallWithArguments(id *__selfPtr, SEL __cmd) {
// Get argument stack
id __self = *__selfPtr;
@@ -51,12 +51,11 @@
if(strcmp(argtype, @encode(id)) == 0) {
id o = (id)*(Handle)stack;
if([o isKindOfClass:[NSString class]]) {
- output = [output stringByAppendingFormat:@" %@:@%@", [parts objectAtIndex:i - 2], [o repr]];
+ output = [output stringByAppendingFormat:@" %@:@\"%@\"", [parts objectAtIndex:i - 2], [o description]];
} else {
output = [output stringByAppendingFormat:@" %@:%@", [parts objectAtIndex:i - 2], o];
}
- stack += sizeof(o);
-
+ stack += sizeof(o);
}
_testType(int, @"%d")

0 comments on commit 726e244

Please sign in to comment.