Skip to content

Commit

Permalink
Merge pull request #389 from gucio321/non-pointer-callbacks-hotfix
Browse files Browse the repository at this point in the history
codegen: in non-pointer callbacks: interpret & as pointer
  • Loading branch information
gucio321 authored Nov 12, 2024
2 parents 9c91871 + 85c7b50 commit 086586f
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion cmd/codegen/gengo_callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (g *typedefsGenerator) writeCallback(typedefName CIdentifier, def string, c
argsStr := parts[1]
argsStr = TrimSuffix(argsStr, ");")
argsStr = ReplaceAll(argsStr, ", ", ",")
argsStr = ReplaceAll(argsStr, "&", "")
argsStr = ReplaceAll(argsStr, "&", "*")
argsListStr := Split(argsStr, ",")
for a, argStr := range argsListStr {
// get name
Expand Down
136 changes: 68 additions & 68 deletions immarkdown/cimmarkdown_typedefs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 086586f

Please sign in to comment.