Browse Source

Fixed vtable generation for the Itanium case.

pull/227/merge
João Matos 12 years ago committed by triton
parent
commit
ab5e7a3a8b
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1465,7 +1465,7 @@ namespace CppSharp.Generators.CSharp
// reserve space for the offset-to-top and RTTI pointers as well // reserve space for the offset-to-top and RTTI pointers as well
var size = entries.Count; var size = entries.Count;
WriteLine("var vfptr{0} = Marshal.AllocHGlobal({1} * {2});", 0, size, Driver.Options.Is32Bit ? 4 : 8); WriteLine("var vfptr{0} = Marshal.AllocHGlobal({1} * {2});", 0, size, Driver.Options.Is32Bit ? 4 : 8);
WriteLine("_NewVTables[{0}] = vfptr0.ToPointer();"); WriteLine("_NewVTables[0] = vfptr0.ToPointer();");
for (int i = 0; i < entries.Count; i++) for (int i = 0; i < entries.Count; i++)
{ {

Loading…
Cancel
Save