genbindings/go: avoid name collisions between enums and enum entries

This commit is contained in:
mappu 2024-11-27 18:12:40 +13:00
parent ee8d115cde
commit 9d587fdadf

View File

@ -688,6 +688,10 @@ import "C"
preventShortNames[e.EnumName] = struct{}{}
continue nextEnum
}
if _, ok := KnownEnums[shortEnumName+"::"+ee.EntryName]; ok {
preventShortNames[e.EnumName] = struct{}{}
continue nextEnum
}
}
}