Skip to content

Commit

Permalink
Fix issue in Objective-C generator when a class name is a substring o…
Browse files Browse the repository at this point in the history
…f its base class name
  • Loading branch information
komakai committed May 10, 2023
1 parent 4ed0741 commit a44a6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/objc/generator/gen_objc.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def __init__(self, decl, namespaces=[]): # [ 'class/struct cname', ': base', [mo
self.member_classes = [] # Only relevant for modules
self.member_enums = [] # Only relevant for modules
if decl[1]:
self.base = re.sub(r"^.*:", "", decl[1].split(",")[0]).strip().replace(self.objc_name, "")
self.base = re.sub(r"^.*:", "", decl[1].split(",")[0]).strip()
if self.base:
self.is_base_class = False
self.native_ptr_name = "nativePtr" + self.objc_name
Expand Down

0 comments on commit a44a6f6

Please sign in to comment.