mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
genbindings/exceptions: move QGADGET to exceptions file
This commit is contained in:
parent
ba4c212805
commit
ed18c216f3
@ -433,11 +433,6 @@ nextMethod:
|
||||
var mm CppMethod
|
||||
mm.MethodName = methodName
|
||||
|
||||
if strings.Contains(methodName, `QGADGET`) {
|
||||
log.Printf("Skipping method %q with weird QGADGET behaviour\n", mm.MethodName)
|
||||
continue
|
||||
}
|
||||
|
||||
err := parseMethod(node, &mm)
|
||||
if err != nil {
|
||||
if errors.Is(err, ErrTooComplex) {
|
||||
|
@ -197,6 +197,10 @@ func AllowMethod(className string, mm CppMethod) error {
|
||||
return ErrTooComplex // Skip private type
|
||||
}
|
||||
|
||||
if strings.Contains(mm.MethodName, `QGADGET`) {
|
||||
return ErrTooComplex // Skipping method with weird QGADGET behaviour
|
||||
}
|
||||
|
||||
if mm.IsReceiverMethod() {
|
||||
// Non-projectable receiver pattern parameters
|
||||
return ErrTooComplex
|
||||
|
Loading…
Reference in New Issue
Block a user