From 6d09688241d772e4af5c5e14f0e5ed900b84fc25 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 6 May 2014 19:36:14 +0300 Subject: [PATCH] ParserGen: fix compilation warning Fix the following warning: ParserGen.cs(208,26): warning CS0618: `CppSharp.AST.Declaration.Ignore' is obsolete: `Replace set by ExplicitlyIgnore(). Replace get by GenerationKind == GenerationKind.None.' Signed-off-by: Tomi Valkeinen --- src/CppParser/Bindings/ParserGen.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CppParser/Bindings/ParserGen.cs b/src/CppParser/Bindings/ParserGen.cs index 0a8447fc..3966949b 100644 --- a/src/CppParser/Bindings/ParserGen.cs +++ b/src/CppParser/Bindings/ParserGen.cs @@ -156,7 +156,7 @@ namespace CppSharp public override bool VisitFunctionDecl(Function function) { - if (function.Ignore) + if (function.GenerationKind == GenerationKind.None) return false; if (function.Parameters.Any(param => IsStdType(param.QualifiedType)))