Browse Source

Update to the new conversion kinds names.

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

2
src/Generator/Generators/CLI/CLIHelpers.cs

@ -438,7 +438,7 @@ namespace Cxxi.Generators.CLI @@ -438,7 +438,7 @@ namespace Cxxi.Generators.CLI
{
for (var i = 0; i < method.Parameters.Count; ++i)
{
if (method.Conversion == MethodConversionType.FunctionToInstanceMethod
if (method.Conversion == MethodConversionKind.FunctionToInstanceMethod
&& i == 0)
continue;

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

@ -439,7 +439,7 @@ namespace Cxxi.Generators.CLI @@ -439,7 +439,7 @@ namespace Cxxi.Generators.CLI
var method = Context.Function as Method;
if (method != null
&& method.Conversion == MethodConversionType.FunctionToInstanceMethod
&& method.Conversion == MethodConversionKind.FunctionToInstanceMethod
&& Context.ParameterIndex == 0)
{
Return.Write("NativePtr");

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

@ -276,7 +276,7 @@ namespace Cxxi.Generators.CLI @@ -276,7 +276,7 @@ namespace Cxxi.Generators.CLI
var method = function as Method;
if (method != null)
isInstanceFunction = method.Conversion == MethodConversionType.None;
isInstanceFunction = method.Conversion == MethodConversionKind.None;
return isInstanceFunction;
}

Loading…
Cancel
Save