ext/pf2/src/util.rs in pf2-0.2.0 vs ext/pf2/src/util.rs in pf2-0.3.0
- old
+ new
@@ -11,13 +11,13 @@
pub(crate) use cstr;
pub type RubyCFunc = unsafe extern "C" fn() -> VALUE;
// TODO: rewrite as macro
-pub fn to_ruby_cfunc1<T>(f: unsafe extern "C" fn(T) -> VALUE) -> RubyCFunc {
+pub fn to_ruby_cfunc_with_no_args<T>(f: unsafe extern "C" fn(T) -> VALUE) -> RubyCFunc {
unsafe { transmute::<unsafe extern "C" fn(T) -> VALUE, RubyCFunc>(f) }
}
-pub fn to_ruby_cfunc3<T, U, V>(f: unsafe extern "C" fn(T, U, V) -> VALUE) -> RubyCFunc {
+pub fn to_ruby_cfunc_with_args<T, U, V>(f: unsafe extern "C" fn(T, U, V) -> VALUE) -> RubyCFunc {
unsafe { transmute::<unsafe extern "C" fn(T, U, V) -> VALUE, RubyCFunc>(f) }
}
#[allow(non_snake_case)]
pub fn RTEST(v: VALUE) -> bool {