libexpr: implement actual constructors for nix::Value

Change-Id: Iebc2bb4e4ea5e93045afe47677df756de4ec4d05
This commit is contained in:
Qyriad
2024-07-31 15:38:37 +02:00
committed by eldritch horrors
parent c347d3df8f
commit ddfca6e81b
4 changed files with 421 additions and 9 deletions
+8 -1
View File
@@ -494,6 +494,14 @@ std::ostream & operator<<(std::ostream & output, PrimOp & primOp)
}
Value::Value(primop_t, PrimOp & primop)
: internalType(tPrimOp)
, primOp(&primop)
, _primop_pad(0)
{
primop.check();
}
PrimOp * Value::primOpAppPrimOp() const
{
Value * left = primOpApp.left;
@@ -506,7 +514,6 @@ PrimOp * Value::primOpAppPrimOp() const
return left->primOp;
}
void Value::mkPrimOp(PrimOp * p)
{
p->check();