Skip to content

Commit 29b453e

Browse files
komakaichrisballinger
authored andcommitted
Objective-C name clash avoidance
1 parent ef0eed8 commit 29b453e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/objc/generator/gen_objc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def get_swift_type(ctype):
570570
return swift_type
571571

572572
def build_swift_extension_decl(name, args, constructor, static, ret_type):
573-
extension_decl = ("class " if static else "") + (("func " + name) if not constructor else "convenience init") + "("
573+
extension_decl = "@nonobjc " + ("class " if static else "") + (("func " + name) if not constructor else "convenience init") + "("
574574
swift_args = []
575575
for a in args:
576576
if a.ctype not in type_dict:

0 commit comments

Comments
 (0)