From 2a8b45e54980360e21be903091260e5729cfbc1f Mon Sep 17 00:00:00 2001 From: Andrius Bentkus Date: Wed, 4 Mar 2015 16:16:51 +0100 Subject: [PATCH] Throw exception on not support VTable instead of silently using Itanium. --- src/Generator/AST/VTables.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Generator/AST/VTables.cs b/src/Generator/AST/VTables.cs index 040cf740..31a7689b 100644 --- a/src/Generator/AST/VTables.cs +++ b/src/Generator/AST/VTables.cs @@ -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 GatherVTableMethodEntries(VTableLayout layout)