mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-23 18:28:17 +00:00
Merge Delegate.Version
When a Delegate is defined multiple times in the spec, we should check if any of these definitions contains a proper Delegate.Version and store that. This improves the self-documentation aspect of the bindings.
This commit is contained in:
parent
7322828304
commit
7978627ad4
|
@ -311,11 +311,16 @@ namespace Bind.Structures
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Function redefined with identical parameters:
|
// Function redefined with identical parameters:
|
||||||
// merge the categories and ignore the second definition.
|
// merge their version and category properties and
|
||||||
|
// discard the duplicate definition
|
||||||
if (!list[index].Category.Contains(d.Category))
|
if (!list[index].Category.Contains(d.Category))
|
||||||
{
|
{
|
||||||
list[index].Category += "|" + d.Category;
|
list[index].Category += "|" + d.Category;
|
||||||
}
|
}
|
||||||
|
if (String.IsNullOrEmpty(list[index].Version))
|
||||||
|
{
|
||||||
|
list[index].Version = d.Version;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue