libexpr: remove RegisterPrimOp static initializer helper
Change-Id: I0cc6d54fca26c66b13f930303086b08b2afb4d54
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user