Skip to content

Commit 38a037e

Browse files
committed
Fix generation of native instance constructors in C++ generator.
1 parent 0f23d87 commit 38a037e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Generator/Generators/C/CppSources.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,12 @@ public virtual void GenerateClassConstructor(Class @class)
292292

293293
var nativeType = $"::{@class.QualifiedOriginalName}*";
294294
WriteLine($"{nativeType} {ClassCtorInstanceParamIdentifier})");
295+
GenerateClassConstructorBase(@class);
295296

296297
WriteOpenBraceAndIndent();
297298

299+
WriteLine($"{Helpers.InstanceIdentifier} = {ClassCtorInstanceParamIdentifier};");
300+
298301
UnindentAndWriteCloseBrace();
299302
NewLine();
300303
}

0 commit comments

Comments
 (0)