rb_define_global_function

Function rb_define_global_function 

Source
pub unsafe extern "C" fn rb_define_global_function(
    mid: *const c_char,
    func: Option<unsafe extern "C" fn() -> VALUE>,
    arity: c_int,
)
Expand description

Defines a global function.

ยง@param[in] mid Name of the function. @param[in] func The method body. @param[in] arity The number of parameters. See @ref defmethod. @note There are in fact 18 different prototypes for func. @see ::ruby::backward::cxxanyargs::define_method::rb_define_global_function

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3