Add float

This commit is contained in:
Kyle Fang
2015-10-28 17:37:13 +08:00
parent 942872bfa0
commit e533ffcf41
2 changed files with 13 additions and 3 deletions

View File

@@ -323,7 +323,13 @@ NSArray* DumpObjMethods(Class clz){
printf("malloc failed!");
return;
}
[invocation getReturnValue:&buffer];
if(!strcmp(returnType, @encode(id))) {
[invocation getReturnValue:&buffer];
} else {
[invocation getReturnValue:buffer];
}
NSString *ret = nil;
__weak typeof(self) wSelf = self;
@@ -352,8 +358,8 @@ NSArray* DumpObjMethods(Class clz){
}
sendResult(ret, YES);
}
}else{
//unsupported type
}else if (!strcmp(returnType, @encode(float))){
;
}
}
}

View File

@@ -68,4 +68,8 @@
return @"bill wang";
}
- (float)getFloat {
return 1.1;
}
@end