From d18998557e7ff2cd353993768c4bcc367487dff5 Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 9 Apr 2013 23:28:00 +0100 Subject: [PATCH] Added an helper method to check for ignored functions. --- src/Generator/Generators/Template.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Generator/Generators/Template.cs b/src/Generator/Generators/Template.cs index 5ec5cc83..c56c1799 100644 --- a/src/Generator/Generators/Template.cs +++ b/src/Generator/Generators/Template.cs @@ -23,6 +23,16 @@ TranslationUnit = unit; } + public static bool CheckIgnoreFunction(Class @class, Function function) + { + if (function.Ignore) return true; + + if (function is Method) + return CheckIgnoreMethod(@class, function as Method); + + return false; + } + public static bool CheckIgnoreMethod(Class @class, Method method) { if (method.Ignore) return true;