Browse Source

Added a new helper transform to ignore a function that matches a pattern.

pull/1/head
triton 13 years ago
parent
commit
d3220fcdc3
  1. 12
      src/Generator/LibraryHelpers.cs

12
src/Generator/LibraryHelpers.cs

@ -242,6 +242,18 @@ namespace Cxxi @@ -242,6 +242,18 @@ namespace Cxxi
function.ExplicityIgnored = true;
}
public void IgnoreFunctionWithPattern(string pattern)
{
foreach (var unit in Library.TranslationUnits)
{
foreach (var function in unit.Functions)
{
if (Regex.Match(function.Name, pattern).Success)
function.ExplicityIgnored = true;
}
}
}
public void SetNameOfFunction(string name, string newName)
{
foreach (var function in FindFunction(name))

Loading…
Cancel
Save