mirror of
https://github.com/zhigang1992/HybridWebView.git
synced 2026-03-26 08:54:17 +08:00
Add float
This commit is contained in:
@@ -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))){
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,4 +68,8 @@
|
||||
return @"bill wang";
|
||||
}
|
||||
|
||||
- (float)getFloat {
|
||||
return 1.1;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user