Browse Source

Use a conditional operator to make the code simpler to read.

pull/1/head
triton 13 years ago
parent
commit
659d2dd1d5
  1. 5
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

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

@ -246,10 +246,7 @@ namespace Cxxi.Generators.CLI @@ -246,10 +246,7 @@ namespace Cxxi.Generators.CLI
}
else
{
if (function is Method)
Write("NativePtr->");
else
Write("::");
Write(IsInstanceFunction(function) ? "NativePtr->" : "::");
Write("{0}(", function.QualifiedOriginalName);
GenerateFunctionParams(function, @params);

Loading…
Cancel
Save