mrb_get_arg1

Function mrb_get_arg1 

Source
pub unsafe extern "C" fn mrb_get_arg1(
    mrb: *mut mrb_state,
) -> mrb_value
Expand description

Retrieve the first and only argument from mrb_state. Raises ArgumentError unless the number of arguments is exactly one.

Correctly handles *splat arguments.