Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 185d6a5

Browse files
author
Stephen Hawley
committed
No longer implementing all of ISwiftObject
1 parent c3462f1 commit 185d6a5

File tree

6 files changed

+47
-212
lines changed

6 files changed

+47
-212
lines changed

SwiftReflector/MarshalEngine.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public IEnumerable<ICodeElement> MarshalConstructor (TypeDeclaration classDecl,
113113
} else {
114114
if (isHomonym) {
115115
use.AddIfNotPresent (typeof (SwiftObjectRegistry));
116-
postMarshalCode.Add (CSReturn.ReturnLine (new CSFunctionCall (cl.Name.Name, true, thisIntPtr, new CSIdentifier ("SwiftObjectRegistry.Registry"))));
116+
postMarshalCode.Add (CSReturn.ReturnLine (new CSFunctionCall (cl.Name.Name, true, thisIntPtr,
117+
new CSFunctionCall ($"{cl.Name.Name}.GetSwiftMetatype", false), new CSIdentifier ("SwiftObjectRegistry.Registry"))));
117118
} else {
118119
postMarshalCode.Add (CSReturn.ReturnLine (thisIntPtr));
119120
}

0 commit comments

Comments
 (0)