Skip to content

Commit

Permalink
codegen: rename callbacks -> typedefsNames
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 14, 2024
1 parent b7d414f commit 4ce714f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/codegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ func main() {
context.enumNames = SliceToMap(enumNames)

// 1.2. Generate Go typedefs
callbacks, err := GenerateTypedefs(context.typedefs, context.structs, context)
typedefsNames, err := GenerateTypedefs(context.typedefs, context.structs, context)
if err != nil {
log.Panic(err)
}

context.typedefsNames = SliceToMap(callbacks)
context.typedefsNames = SliceToMap(typedefsNames)

// 1.3. Generate C wrapper
validFuncs, err := generateCppWrapper(flags.prefix, flags.include, context.funcs, context)
Expand Down

0 comments on commit 4ce714f

Please sign in to comment.