Browse Source

Ignore system headers in DelegatesPass.VisitMethodDecl since they might not be part of a module.

pull/658/head
Joao Matos 9 years ago
parent
commit
f01c5b0fbe
  1. 3
      src/Generator/Passes/DelegatesPass.cs

3
src/Generator/Passes/DelegatesPass.cs

@ -86,7 +86,8 @@ namespace CppSharp.Passes @@ -86,7 +86,8 @@ namespace CppSharp.Passes
public override bool VisitMethodDecl(Method method)
{
if (!base.VisitMethodDecl(method) || !method.IsVirtual || method.Ignore)
if (!base.VisitMethodDecl(method) || !method.IsVirtual || method.Ignore
|| method.TranslationUnit.IsSystemHeader)
return false;
var @params = method.GatherInternalParams(Driver.Options.IsItaniumLikeAbi, true).ToList();

Loading…
Cancel
Save