Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
primops.hh
Go to the documentation of this file.
1#pragma once
3
4#include "nix/expr/eval.hh"
5
6#include <tuple>
7#include <vector>
8
9namespace nix {
10
12{
13 typedef std::vector<PrimOp> PrimOps;
14
15 static PrimOps & primOps();
16
22 RegisterPrimOp(PrimOp && primOp);
23};
24
25/* These primops are disabled without enableNativeCode, but plugins
26 may wish to use them in limited contexts without globally enabling
27 them. */
28
32void prim_importNative(EvalState & state, CallSite callSite, Value * const * args, Value & v);
33
37void prim_exec(EvalState & state, CallSite callSite, Value * const * args, Value & v);
38
39void makePositionThunks(EvalState & state, const PosIdx pos, Value & line, Value & column);
40
41} // namespace nix
Definition eval.hh:420
Definition pos-idx.hh:10
void prim_exec(EvalState &state, CallSite callSite, Value *const *args, Value &v)
Definition primops.cc:374
void prim_importNative(EvalState &state, CallSite callSite, Value *const *args, Value &v)
Definition primops.cc:344
Definition eval.hh:97
Definition eval.hh:111
RegisterPrimOp(PrimOp &&primOp)
Definition primops.cc:3991
Definition value.hh:1166