From 12b257f045fcaf8f5c42fe6d153419242c11a6d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Apr 2016 11:15:45 +0200 Subject: Make primop registration pluggable This way we don't have to put all primops in one giant file. --- src/libexpr/primops.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/libexpr/primops.hh (limited to 'src/libexpr/primops.hh') diff --git a/src/libexpr/primops.hh b/src/libexpr/primops.hh new file mode 100644 index 000000000000..39d23b04a5ce --- /dev/null +++ b/src/libexpr/primops.hh @@ -0,0 +1,15 @@ +#include "eval.hh" + +#include +#include + +namespace nix { + +struct RegisterPrimOp +{ + typedef std::vector> PrimOps; + static PrimOps * primOps; + RegisterPrimOp(std::string name, size_t arity, PrimOpFun fun); +}; + +} -- cgit 1.4.1