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

Update to new TypedData system #595

Open
v0dro opened this issue Jun 1, 2017 · 2 comments
Open

Update to new TypedData system #595

v0dro opened this issue Jun 1, 2017 · 2 comments

Comments

@v0dro
Copy link
Member

v0dro commented Jun 1, 2017

The latest Ruby updates the traditional Data_* macros into TypeData_* macros for creating Ruby objects from C extensions. This allows for more sophisticated typedata management at the C level. The old system will be deprecated soon and we should upgrade.

Here's the docs: https://github.com/ruby/ruby/blob/trunk/doc/extension.rdoc#encapsulate-c-data-into-a-ruby-object

@translunar
Copy link
Member

Presumably this is not backwards compatible, right? So we should probably do some kind of #ifdef?

@v0dro
Copy link
Member Author

v0dro commented Jun 2, 2017

Yep.

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

No branches or pull requests

2 participants