Browse Source

Fixed in/out for CLI.

pull/267/head
Tom Spilman 12 years ago
parent
commit
ab4440fb14
  1. 5
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

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

@ -1067,7 +1067,10 @@ namespace CppSharp.Generators.CLI
var typePrinter = new CppTypePrinter(Driver.TypeDatabase); var typePrinter = new CppTypePrinter(Driver.TypeDatabase);
var type = paramType.Visit(typePrinter); var type = paramType.Visit(typePrinter);
WriteLine("{0} {1};", type, argName); if (param.IsInOut)
WriteLine("{0} {1} = {2};", type, argName, param.Name);
else
WriteLine("{0} {1};", type, argName);
} }
else else
{ {

Loading…
Cancel
Save