genbindings: fix early Empty() if header only contains enums

This commit is contained in:
mappu 2024-10-08 18:22:14 +13:00
parent 60600530c6
commit a4eb43c9fd

View File

@ -338,6 +338,7 @@ type CppParsedHeader struct {
func (c CppParsedHeader) Empty() bool {
return len(c.Typedefs) == 0 &&
len(c.Enums) == 0 &&
len(c.Classes) == 0
}