value_call_multi

Function value_call_multi 

Source
pub unsafe extern "C" fn value_call_multi(
    context: *mut c_context,
    state: *mut EvalState,
    fn_: *mut value,
    nargs: usize,
    args: *mut *mut value,
    value: *mut value,
) -> err
Expand description

@brief Calls a Nix function with multiple arguments. @ingroup value_create

Technically these are functions that return functions. It is common for Nix functions to be curried, so this function is useful for calling them.

@param[out] context Optional, stores error information @param[in] state The state of the evaluation. @param[in] fn The Nix function to call. @param[in] nargs The number of arguments. @param[in] args The arguments to pass to the function. @param[out] value The result of the function call.

@see nix_value_call For the single argument primitive. @see NIX_VALUE_CALL For a macro that wraps this function for convenience.