libexpr/primops: Migrate primops to return Values
A significant part of #1136. This is a rather large cl, because all of the primops need to be changed together. Change-Id: I7d92698d5344bd6186ee4fa47f5c21966a6a6964
This commit is contained in:
@@ -25,13 +25,13 @@ static void maybeRequireMeowForDlopen() {
|
||||
meow();
|
||||
}
|
||||
|
||||
static void prim_anotherNull (EvalState & state, Value ** args, Value & v)
|
||||
static Value prim_anotherNull(EvalState & state, Value ** args)
|
||||
{
|
||||
assert(entryCalled);
|
||||
if (mySettings.settingSet)
|
||||
v = Value::VNULL;
|
||||
return Value::VNULL;
|
||||
else
|
||||
v = {NewValueAs::boolean, false};
|
||||
return {NewValueAs::boolean, false};
|
||||
}
|
||||
|
||||
extern "C" void nix_plugin_entry()
|
||||
|
||||
Reference in New Issue
Block a user