mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
Merge pull request #18977 from Rightpoint:objc-collision-fix
This commit is contained in:
commit
e98c845f0b
@ -570,7 +570,7 @@ def get_swift_type(ctype):
|
||||
return swift_type
|
||||
|
||||
def build_swift_extension_decl(name, args, constructor, static, ret_type):
|
||||
extension_decl = ("class " if static else "") + (("func " + name) if not constructor else "convenience init") + "("
|
||||
extension_decl = "@nonobjc " + ("class " if static else "") + (("func " + name) if not constructor else "convenience init") + "("
|
||||
swift_args = []
|
||||
for a in args:
|
||||
if a.ctype not in type_dict:
|
||||
|
Loading…
Reference in New Issue
Block a user