Browse Source

Added an helper method to check for ignored functions.

pull/1/head
triton 12 years ago
parent
commit
d18998557e
  1. 10
      src/Generator/Generators/Template.cs

10
src/Generator/Generators/Template.cs

@ -23,6 +23,16 @@ @@ -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;

Loading…
Cancel
Save