Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a nice interface for #define constants from C #138

Closed
plicease opened this issue Jul 2, 2019 · 2 comments

Comments

@plicease
Copy link
Member

commented Jul 2, 2019

Proof of concept here:

https://gist.github.com/plicease/7d561de84800cd7fbac25319f3834cb9

  • I feel as though a good interface here could reduce the amount of boilerplate.
  • Should work either inline as above, or bundled as a .c file with the dist
@plicease

This comment has been minimized.

Copy link
Member Author

commented Jul 12, 2019

This might make sense for an external dist FFI::Constant maybe.

@plicease

This comment has been minimized.

Copy link
Member Author

commented Aug 1, 2019

The low level interface for this was added with #162. A slick code generator tool is in order to make this painlessly easy, but is outside the scope of the core FFI-Platypus interface.

@plicease plicease closed this Aug 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.