1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

Merge pull request #11866 from DeterminateSystems/callFunction-span

callFunction: Use std::span
This commit is contained in:
Robert Hensing 2024-11-18 18:37:12 +01:00 committed by GitHub
commit 61d075840f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 28 deletions

View file

@ -690,13 +690,12 @@ public:
bool isFunctor(Value & fun);
// FIXME: use std::span
void callFunction(Value & fun, size_t nrArgs, Value * * args, Value & vRes, const PosIdx pos);
void callFunction(Value & fun, std::span<Value *> args, Value & vRes, const PosIdx pos);
void callFunction(Value & fun, Value & arg, Value & vRes, const PosIdx pos)
{
Value * args[] = {&arg};
callFunction(fun, 1, args, vRes, pos);
callFunction(fun, args, vRes, pos);
}
/**