Skip to content

Commit

Permalink
gengo_typedefs/opt1: remove & - means const
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 4, 2024
1 parent dd0a1b3 commit 91c08f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/codegen/gengo_typedefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ func New%[1]sFromC[SRC any](cvalue SRC) *%[1]s {
argsStr := parts[2]
argsStr = TrimSuffix(argsStr, ");")
argsStr = ReplaceAll(argsStr, ", ", ",")
argsStr = ReplaceAll(argsStr, "&", "")
argsListStr := Split(argsStr, ",")
for a, argStr := range argsListStr {
// get name
Expand Down

0 comments on commit 91c08f2

Please sign in to comment.