From 08168454c13113d9affbf82c6e4e7a00baf57625 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 11 Aug 2024 16:54:07 +1200 Subject: [PATCH] genbindings: qreal->double --- cmd/genbindings/clang2il.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/genbindings/clang2il.go b/cmd/genbindings/clang2il.go index 29564ee2..cd360583 100644 --- a/cmd/genbindings/clang2il.go +++ b/cmd/genbindings/clang2il.go @@ -361,6 +361,9 @@ func parseSingleTypeString(p string) CppParameter { insert.ByRef = true } else if tok == "*" { insert.Pointer = true + } else if tok == "qreal" { + // Transform typedef + insert.ParameterType += " double" } else { // Valid part of the type name insert.ParameterType += " " + tok