Browse Source

Replaced a hard-coded variable name.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/53/head
Dimitar Dobrev 13 years ago
parent
commit
449777e245
  1. 5
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1567,9 +1567,10 @@ namespace CppSharp.Generators.CSharp @@ -1567,9 +1567,10 @@ namespace CppSharp.Generators.CSharp
PopBlock(NewLineKind.BeforeNextBlock);
}
private void GenerateVirtualTableFunctionCall(Method method, Class @class)
private void GenerateVirtualTableFunctionCall(Function method, Class @class)
{
WriteLine("void* vtable = *((void**) __Instance.ToPointer());");
WriteLine("void* vtable = *((void**) {0}.ToPointer());",
Helpers.InstanceIdentifier);
int i;
switch (Driver.Options.Abi)
{

Loading…
Cancel
Save