genbindings: standardize on log to stderr, not fmt to stdout

This commit is contained in:
mappu 2024-08-18 15:55:23 +12:00
parent 28b6684004
commit feb7b1d5f4

View File

@ -32,7 +32,7 @@ func parseHeader(topLevel []interface{}) (*CppParsedHeader, error) {
return nil, errors.New("node has no name")
}
fmt.Printf("-> %q name=%q\n", kind, nodename)
log.Printf("-> %q name=%q\n", kind, nodename)
// Skip over forward class declarations
// This is determined in two ways:
@ -273,7 +273,7 @@ nextMethod:
ret.Methods = append(ret.Methods, mm)
default:
fmt.Printf("==> NOT IMPLEMENTED %q\n", kind)
log.Printf("==> NOT IMPLEMENTED %q\n", kind)
}
}
@ -346,7 +346,7 @@ func parseMethod(node map[string]interface{}, mm *CppMethod) error {
default:
// Something else inside a declaration??
fmt.Printf("==> NOT IMPLEMENTED CXXMethodDecl->%q\n", methodObj["kind"])
log.Printf("==> NOT IMPLEMENTED CXXMethodDecl->%q\n", methodObj["kind"])
}
}
}