Browse Source

Generate acessor methods for C targets in field to property pass..

pull/1511/head
Joao Matos 5 years ago committed by João Matos
parent
commit
8f76e89434
  1. 3
      src/Generator/Passes/FieldToPropertyPass.cs

3
src/Generator/Passes/FieldToPropertyPass.cs

@ -66,7 +66,8 @@ namespace CppSharp.Passes @@ -66,7 +66,8 @@ namespace CppSharp.Passes
AssociatedDeclaration = field
};
if (Options.GeneratorKind == GeneratorKind.CPlusPlus)
if (Options.GeneratorKind == GeneratorKind.C ||
Options.GeneratorKind == GeneratorKind.CPlusPlus)
GenerateAcessorMethods(field, prop);
// do not rename value-class fields because they would be

Loading…
Cancel
Save