Browse Source

Throw exception on not support VTable instead of silently using Itanium.

pull/420/head
Andrius Bentkus 11 years ago
parent
commit
2a8b45e549
  1. 6
      src/Generator/AST/VTables.cs

6
src/Generator/AST/VTables.cs

@ -12,11 +12,13 @@ namespace CppSharp.AST @@ -12,11 +12,13 @@ namespace CppSharp.AST
{
case CppAbi.Microsoft:
return GatherVTableMethodsMS(@class);
default:
case CppAbi.Itanium:
return GatherVTableMethodsItanium(@class);
}
throw new NotSupportedException();
throw new NotSupportedException(
string.Format("VTable format for {0} is not supported", @class.Layout.ABI.ToString().Split('.').Last())
);
}
private static List<VTableComponent> GatherVTableMethodEntries(VTableLayout layout)

Loading…
Cancel
Save