mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +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{}{}
|
preventShortNames[e.EnumName] = struct{}{}
|
||||||
continue nextEnum
|
continue nextEnum
|
||||||
}
|
}
|
||||||
|
if _, ok := KnownEnums[shortEnumName+"::"+ee.EntryName]; ok {
|
||||||
|
preventShortNames[e.EnumName] = struct{}{}
|
||||||
|
continue nextEnum
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user