diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-29 12:53:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 12:53:29 +0200 |
commit | fd01c48d34d8caa98c3287f7736cf1e7b79c97b0 (patch) | |
tree | 3348ad9275afff5e7f48a044016ed564f6d2a987 /src/libexpr/eval.hh | |
parent | 34e8cc82874ffdbab01ef4d8122ea5a5a93a4eba (diff) | |
parent | 2b02ce0e481b653bcc5b403ef5d9e3670a88e8e5 (diff) |
Merge pull request #5301 from Ma27/builtins-missing-feature-error
libexpr: throw a more helpful eval-error if a builtin is not available due to a missing feature-flag
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index b29feb134..9df6150c6 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -140,6 +140,12 @@ public: std::shared_ptr<Store> buildStore = nullptr); ~EvalState(); + void requireExperimentalFeatureOnEvaluation( + const std::string & feature, + const std::string_view fName, + const Pos & pos + ); + void addToSearchPath(const string & s); SearchPath getSearchPath() { return searchPath; } |