libexpr: remove RegisterPrimOp static initializer helper

Change-Id: I0cc6d54fca26c66b13f930303086b08b2afb4d54
This commit is contained in:
eldritch horrors
2026-01-14 16:22:08 +00:00
parent 14de5fa627
commit 6cc2ef7c6d
5 changed files with 30 additions and 14 deletions
+5 -6
View File
@@ -36,13 +36,12 @@ static void prim_anotherNull (EvalState & state, Value ** args, Value & v)
v.mkBool(false);
}
static RegisterPrimOp rp({
.name = "anotherNull",
.arity = 0,
.fun = prim_anotherNull,
});
extern "C" void nix_plugin_entry()
{
PluginPrimOps::add({
.name = "anotherNull",
.arity = 0,
.fun = prim_anotherNull,
});
entryCalled = true;
}