genbindings: skip generation for =delete'd ctors

This commit is contained in:
mappu 2024-08-10 12:54:00 +12:00
parent 012b62ee06
commit daa6252848

View File

@ -120,6 +120,10 @@ nextMethod:
continue // The bindings can't construct an abstract class continue // The bindings can't construct an abstract class
} }
// Check if this is `= delete`
if explicitlyDeleted, ok := node["explicitlyDeleted"].(bool); ok && explicitlyDeleted {
continue
}
var mm CppMethod var mm CppMethod
err := parseMethod(node, &mm) err := parseMethod(node, &mm)
@ -145,6 +149,11 @@ nextMethod:
continue // Skip private/protected continue // Skip private/protected
} }
// Check if this is `= delete`
if explicitlyDeleted, ok := node["explicitlyDeleted"].(bool); ok && explicitlyDeleted {
continue
}
// Method // Method
methodName, ok := node["name"].(string) methodName, ok := node["name"].(string)
if !ok { if !ok {