From a7f9e0bd9f93473aaa335f6ccb43188624d1b0ae Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 24 Dec 2013 16:59:26 +0000 Subject: [PATCH] Check for and ignore decayed types since we cannot handle some cases. --- src/Generator/Passes/CheckIgnoredDecls.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Generator/Passes/CheckIgnoredDecls.cs b/src/Generator/Passes/CheckIgnoredDecls.cs index a9fe44eb..991009e5 100644 --- a/src/Generator/Passes/CheckIgnoredDecls.cs +++ b/src/Generator/Passes/CheckIgnoredDecls.cs @@ -110,6 +110,15 @@ namespace CppSharp.Passes return false; } + var decayedType = param.Type.Desugar() as DecayedType; + if (decayedType != null) + { + function.ExplicityIgnored = true; + Log.Debug("Function '{0}' was ignored due to unsupported decayed type param", + function.Name); + return false; + } + if (param.Kind == ParameterKind.IndirectReturnType) { Class retClass;