From cd65094792bf2dff4898f893805d997f9c63d982 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Tue, 20 Aug 2013 18:42:00 +0300 Subject: [PATCH] Fixed the generation of virtual tables to use the new format of internal generated identifiers. Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index b73f595f..9b4f6898 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1377,7 +1377,7 @@ namespace CppSharp.Generators.CSharp { WriteLine("{0} = native;", Helpers.InstanceIdentifier); if (Options.GenerateVirtualTables && @class.IsDynamic) - WriteLine("SetupVTables(_Instance);"); + WriteLine("SetupVTables({0});", Helpers.GeneratedIdentifier("Instance")); } } else @@ -1581,7 +1581,7 @@ namespace CppSharp.Generators.CSharp GenerateFunctionParams(@params); WriteLine(");"); if (Options.GenerateVirtualTables && @class.IsDynamic) - WriteLine("SetupVTables(_Instance);"); + WriteLine("SetupVTables({0});", Helpers.GeneratedIdentifier("Instance")); } public void GenerateInternalFunctionCall(Function function,