From 9a55746b810ea67d2b6351c738eeed3a415b9f36 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 8 May 2013 23:12:30 +0100 Subject: [PATCH] Added helper to ignore a collection of headers. --- src/Generator/Library.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Generator/Library.cs b/src/Generator/Library.cs index 23c676e5..25e25785 100644 --- a/src/Generator/Library.cs +++ b/src/Generator/Library.cs @@ -302,6 +302,12 @@ namespace CppSharp #region Module Helpers + public static void IgnoreHeadersWithName(this Library library, IEnumerable patterns) + { + foreach(var pattern in patterns) + library.IgnoreHeadersWithName(pattern); + } + public static void IgnoreHeadersWithName(this Library library, string pattern) { var modules = library.TranslationUnits.FindAll(