3#include <nix/nixexpr.hh>
10 const nix::Expr *P = &E;
11#define NIX_EXPR(EXPR) \
12 if (dynamic_cast<const nix::EXPR *>(P)) { \
17 "Cannot dynamic-cast to nix::Expr*, missing entries in Nodes.inc?");
24#define NIX_EXPR(EXPR) \
32 assert(
false &&
"Unknown ExprKind");
Determine the kind of nix::Expr.
Nix expressions declaration.
ExprKind
Enumeration of all kinds of nix::Expr.
Access EvalCache in nix::EvalState.
const char * nameOf(ek::ExprKind Kind)
Get printable name of some kind.
ek::ExprKind kindOf(const nix::Expr &E)
Determine the kind of nix::Expr.