Function nix_libexpr_init

Source
pub unsafe extern "C" fn nix_libexpr_init(
    context: *mut nix_c_context,
) -> nix_err
Expand description

Initialize the Nix language evaluator. This function must be called at least once, at some point before constructing a EvalState for the first time. This function can be called multiple times, and is idempotent.

§Arguments

  • context [out] - Optional, stores error information

§Returns

NIX_OK if the initialization was successful, an error code otherwise.