Browse Source

Generate the SupportBefore text template when marshaling value type fields.

pull/1/head
triton 12 years ago
parent
commit
e280de3d68
  1. 3
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

3
src/Generator/Generators/CLI/CLISourcesTemplate.cs

@ -610,6 +610,9 @@ namespace Cxxi.Generators.CLI @@ -610,6 +610,9 @@ namespace Cxxi.Generators.CLI
var marshal = new CLIMarshalNativeToManagedPrinter(ctx);
field.Visit(marshal);
if (!string.IsNullOrWhiteSpace(marshal.Context.SupportBefore))
Write(marshal.Context.SupportBefore);
WriteLine("this->{0} = {1};", field.Name, marshal.Context.Return);
}
}

Loading…
Cancel
Save