mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
callFunction: Use std::span
This is a bit safer than having a separate nrArgs argument.
This commit is contained in:
parent
14edb78d53
commit
a2e4a4c238
5 changed files with 22 additions and 27 deletions
|
@ -67,7 +67,7 @@ nix_err nix_value_call_multi(nix_c_context * context, EvalState * state, nix_val
|
|||
if (context)
|
||||
context->last_err_code = NIX_OK;
|
||||
try {
|
||||
state->state.callFunction(fn->value, nargs, (nix::Value * *)args, value->value, nix::noPos);
|
||||
state->state.callFunction(fn->value, {(nix::Value * *) args, nargs}, value->value, nix::noPos);
|
||||
state->state.forceValue(value->value, nix::noPos);
|
||||
}
|
||||
NIXC_CATCH_ERRS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue