mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 06:00:38 +00:00
genbindings/go: avoid name collisions between enums and enum entries
This commit is contained in:
parent
ee8d115cde
commit
9d587fdadf
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user