Skip to content

A little different C binding #46

Description

@zamtmn

Hi! I am very interested in your development, I want to use it in our cad program. I tried to write headers for pascal https://github.com/zamtmn/fplnlib , based on your CAPI. It works, but it doesn't seem optimal to me. Any call leads to the build of a C++ object from C data and back.

Could you change the approach to writing from bindings, or add to an existing one?

https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/lcl/interfaces/qt5/cbindings/src/qcombobox_c.cpp

The reference to the class instance is passed out, in wrapper procedures it is converted to a class and the corresponding method is called.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions