Browse Source

Check for and ignore decayed types since we cannot handle some cases.

pull/144/merge
triton 12 years ago
parent
commit
a7f9e0bd9f
  1. 9
      src/Generator/Passes/CheckIgnoredDecls.cs

9
src/Generator/Passes/CheckIgnoredDecls.cs

@ -110,6 +110,15 @@ namespace CppSharp.Passes
return false; 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) if (param.Kind == ParameterKind.IndirectReturnType)
{ {
Class retClass; Class retClass;

Loading…
Cancel
Save