Browse Source

Added support for prefix text before the marshaled argument is passed to the wrapped native function.

pull/1/head
triton 13 years ago
parent
commit
3d8ea62e4e
  1. 1
      src/Generator/Generators/CLI/CLIMarshal.cs
  2. 3
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

1
src/Generator/Generators/CLI/CLIMarshal.cs

@ -236,6 +236,7 @@ namespace Cxxi.Generators.CLI @@ -236,6 +236,7 @@ namespace Cxxi.Generators.CLI
SupportBefore = new TextGenerator();
SupportAfter = new TextGenerator();
Return = new TextGenerator();
ArgumentPrefix = new TextGenerator();
}
public bool VisitTagType(TagType tag, TypeQualifiers quals)

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

@ -312,6 +312,9 @@ namespace Cxxi.Generators.CLI @@ -312,6 +312,9 @@ namespace Cxxi.Generators.CLI
if (!string.IsNullOrWhiteSpace(marshal.SupportAfter))
WriteLine(marshal.SupportAfter);
var argText = marshal.ArgumentPrefix + argName;
@params.Add(new ParamMarshal { Name = argText, Param = param });
}
}

Loading…
Cancel
Save