Browse Source

Improved support for Itanium-like ABIs.

pull/355/head
triton 11 years ago
parent
commit
406fabd949
  1. 4
      src/Generator/AST/VTables.cs

4
src/Generator/AST/VTables.cs

@ -12,7 +12,7 @@ namespace CppSharp.AST @@ -12,7 +12,7 @@ namespace CppSharp.AST
{
case CppAbi.Microsoft:
return GatherVTableMethodsMS(@class);
case CppAbi.Itanium:
default:
return GatherVTableMethodsItanium(@class);
}
@ -62,7 +62,7 @@ namespace CppSharp.AST @@ -62,7 +62,7 @@ namespace CppSharp.AST
return index;
}
break;
case CppAbi.Itanium:
default:
// ignore offset to top and RTTI
return @class.Layout.Layout.Components.IndexOf(entry) - 2;
}

Loading…
Cancel
Save