|
|
|
@ -1,6 +1,7 @@ |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Globalization; |
|
|
|
using System.Globalization; |
|
|
|
|
|
|
|
using System.Linq; |
|
|
|
using System.Text.RegularExpressions; |
|
|
|
using System.Text.RegularExpressions; |
|
|
|
using Cxxi.Generators; |
|
|
|
using Cxxi.Generators; |
|
|
|
|
|
|
|
|
|
|
|
@ -228,16 +229,11 @@ namespace Cxxi |
|
|
|
|
|
|
|
|
|
|
|
#region Function Helpers
|
|
|
|
#region Function Helpers
|
|
|
|
|
|
|
|
|
|
|
|
public Function FindFunction(string name) |
|
|
|
public IEnumerable<Function> FindFunction(string name) |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach (var module in Library.TranslationUnits) |
|
|
|
return Library.TranslationUnits |
|
|
|
{ |
|
|
|
.Select(module => module.FindFunction(name)) |
|
|
|
var function = module.FindFunction(name); |
|
|
|
.Where(function => function != null); |
|
|
|
if (function != null) |
|
|
|
|
|
|
|
return function; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void IgnoreFunctionWithName(string name) |
|
|
|
public void IgnoreFunctionWithName(string name) |
|
|
|
|