lix-releng-staging/src/libexpr/primops.hh
Eelco Dolstra 12b257f045 Make primop registration pluggable
This way we don't have to put all primops in one giant file.
2016-04-14 12:50:01 +02:00

16 lines
277 B
C++

#include "eval.hh"
#include <tuple>
#include <vector>
namespace nix {
struct RegisterPrimOp
{
typedef std::vector<std::tuple<std::string, size_t, PrimOpFun>> PrimOps;
static PrimOps * primOps;
RegisterPrimOp(std::string name, size_t arity, PrimOpFun fun);
};
}