Browse Source

Fixed the generation of virtual tables to use the new format of internal generated identifiers.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/46/head
Dimitar Dobrev 12 years ago
parent
commit
cd65094792
  1. 4
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

4
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -1377,7 +1377,7 @@ namespace CppSharp.Generators.CSharp
{ {
WriteLine("{0} = native;", Helpers.InstanceIdentifier); WriteLine("{0} = native;", Helpers.InstanceIdentifier);
if (Options.GenerateVirtualTables && @class.IsDynamic) if (Options.GenerateVirtualTables && @class.IsDynamic)
WriteLine("SetupVTables(_Instance);"); WriteLine("SetupVTables({0});", Helpers.GeneratedIdentifier("Instance"));
} }
} }
else else
@ -1581,7 +1581,7 @@ namespace CppSharp.Generators.CSharp
GenerateFunctionParams(@params); GenerateFunctionParams(@params);
WriteLine(");"); WriteLine(");");
if (Options.GenerateVirtualTables && @class.IsDynamic) if (Options.GenerateVirtualTables && @class.IsDynamic)
WriteLine("SetupVTables(_Instance);"); WriteLine("SetupVTables({0});", Helpers.GeneratedIdentifier("Instance"));
} }
public void GenerateInternalFunctionCall(Function function, public void GenerateInternalFunctionCall(Function function,

Loading…
Cancel
Save