Skip to content

Two additional type data check methods #27

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/typed_data.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use types::{c_char, c_void, size_t, Value};
use types::{c_char, c_void, c_int, size_t, Value};

extern "C" {
pub fn rb_check_typeddata(object: Value, data_type: *const RbDataType) -> *mut c_void;
pub fn rb_typeddata_inherited_p(child: *const RbDataType, parent: *const RbDataType) -> c_int;
pub fn rb_typeddata_is_kind_of(object: Value, data_type: *const RbDataType) -> c_int;

pub fn rb_data_typed_object_wrap(klass: Value,
data: *mut c_void,
Expand Down