Bug fix and start improvements to subclassing.

This commit is contained in:
gmp
2019-05-24 00:12:46 -04:00
parent a616761475
commit 38c7856b89
5 changed files with 41 additions and 8 deletions
+4
View File
@@ -24,6 +24,7 @@ func IsGoInterface(gt string) bool {
return goInterfaces[gt]
}
//TypeParameters maps, for each class, a TypedefName to a type, representing
//the Objective-C type parameters for that class
var TypeParameters map[string]map[string]string
@@ -194,6 +195,9 @@ func _goType(ct string) string {
if ct == "Id" {
ct = "Id"
}
if len(ct) > 1 && ShouldWrap(ct[1:]) {
return ct[1:]
}
if len(ct) > 4 && ct[len(ct)-4:len(ct)] == "Void" {
ct = ct[:len(ct)-5] + "unsafe.Pointer"
}