Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
533 B

using System.Collections.Generic;
namespace CppSharp.AST
{
public static class Utils
{
public static IEnumerable<Function> GetFunctionOverloads(Function function,
Class @class = null)
{
var overloads = new List<Function>();
if (@class == null)
{
var @namespace = function.Namespace;
return @namespace.GetFunctionOverloads(function);
}
return @class.GetFunctionOverloads(function);
}
}
}