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
1 changed files with 1 additions and 0 deletions

View File

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