diff options
author | Shea Levy <shea@shealevy.com> | 2018-02-08T18·00-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-02-08T19·35-0500 |
commit | 081f14a169d36243f97263acb41fb108af243619 (patch) | |
tree | 563a1287be33bff5b2d36d38a9e77338425d45b4 /src/libexpr/eval.hh | |
parent | 88cd2d41acb994684a3e4ead1b1676019f43b4b6 (diff) |
Allow using RegisterPrimop to define constants.
This enables plugins to add new constants, as well as new primops.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 9e3d30d95f49..51905d7e1c62 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -210,7 +210,7 @@ private: void createBaseEnv(); - void addConstant(const string & name, Value & v); + Value * addConstant(const string & name, Value & v); Value * addPrimOp(const string & name, unsigned int arity, PrimOpFun primOp); |