diff options
author | Ben Burdette <bburdette@protonmail.com> | 2022-05-25 10:21:20 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@protonmail.com> | 2022-05-25 10:21:20 -0600 |
commit | b4c24a29c62259a068c8270be62cf5a412e1e35c (patch) | |
tree | 1936c16ab6f3a36e86cb3d9f2f46886647a0c932 /src/libexpr/eval.hh | |
parent | 91b7d5373acdc5d9b3f2c13d16b9850ab5fc9e9d (diff) |
back to ref<EvalState> in NixRepl
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 3444815fd..d793e2a31 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -13,7 +13,6 @@ #include <unordered_map> #include <mutex> - namespace nix { @@ -88,7 +87,7 @@ struct DebugTrace { void debugError(Error * e, Env & env, Expr & expr); -class EvalState +class EvalState : public std::enable_shared_from_this<EvalState> { public: SymbolTable symbols; @@ -127,7 +126,7 @@ public: RootValue vImportedDrvToDerivation = nullptr; /* Debugger */ - void (* debugRepl)(EvalState & es, const ValMap & extraEnv); + void (* debugRepl)(ref<EvalState> es, const ValMap & extraEnv); bool debugStop; bool debugQuit; std::list<DebugTrace> debugTraces; |