Skip to content

Conversation

@gucio321
Copy link
Collaborator

Hi!
This is a bit large PR. I call it "codegen refactor". The following things has been added/changed:

  • add some missing types (fix Cimplot: missing function: Plot_PlotPieChart* #33 close Pie chart: fix generation #54 )
  • reorder codegen/arg_wrapper.go - put "generic-generation" methods on the bottom of the file
  • add some more generic-wrappers and fix their names (e.g. simpleW, simplePtrW e.t.c.)
  • add a new interface and generic function called wrappableType. it is responsible for converting GO value to and fro C.
  • add generic wrap method (replacing all the wrap methods from extra_types.go) that converts given GO pointer into C pointer and finisher func
  • fix some wrong types

feel free to review and request changes!

Copy link
Contributor

@eliasdaler eliasdaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better. Think one thing might still be improved.

@eliasdaler eliasdaler merged commit 246d799 into AllenDang:main Dec 19, 2022
@gucio321 gucio321 deleted the add-missing-types branch December 19, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cimplot: missing function: Plot_PlotPieChart*

2 participants