diff --git a/cmd/genbindings/emitgo.go b/cmd/genbindings/emitgo.go index 0c835ae5..b7e14801 100644 --- a/cmd/genbindings/emitgo.go +++ b/cmd/genbindings/emitgo.go @@ -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 + } } }