Skip to content

Commit

Permalink
[sourcegen] Allow for methods without parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Mar 2, 2023
1 parent ed39124 commit 87d5778
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def _convert_func(self, parsed: Func) -> CsFunc:
release_func_handle_class_name = handle_class_name
elif method.startswith("new"):
ret_type = handle_class_name
elif method.startswith("reset") or method.startswith("size"):
pass
else:
params[0] = Param(handle_class_name, params[0].name)

Expand Down

0 comments on commit 87d5778

Please sign in to comment.