Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
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
9
namespace
nix {
10
11
struct
RegisterPrimOp
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
32
void
prim_importNative
(
EvalState
& state,
CallSite
callSite,
Value
*
const
* args,
Value
& v);
33
37
void
prim_exec
(
EvalState
& state,
CallSite
callSite,
Value
*
const
* args,
Value
& v);
38
39
void
makePositionThunks(
EvalState
& state,
const
PosIdx
pos,
Value
& line,
Value
& column);
40
41
}
// namespace nix
nix::EvalState
Definition
eval.hh:420
nix::PosIdx
Definition
pos-idx.hh:10
eval.hh
nix::prim_exec
void prim_exec(EvalState &state, CallSite callSite, Value *const *args, Value &v)
Definition
primops.cc:374
nix::prim_importNative
void prim_importNative(EvalState &state, CallSite callSite, Value *const *args, Value &v)
Definition
primops.cc:344
nix::CallSite
Definition
eval.hh:97
nix::PrimOp
Definition
eval.hh:111
nix::RegisterPrimOp::RegisterPrimOp
RegisterPrimOp(PrimOp &&primOp)
Definition
primops.cc:3991
nix::Value
Definition
value.hh:1166
libexpr
include
nix
expr
primops.hh
Generated by
1.18.0