aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-05-25 10:21:20 -0600
committerBen Burdette <bburdette@protonmail.com>2022-05-25 10:21:20 -0600
commitb4c24a29c62259a068c8270be62cf5a412e1e35c (patch)
tree1936c16ab6f3a36e86cb3d9f2f46886647a0c932 /src/libexpr/eval.hh
parent91b7d5373acdc5d9b3f2c13d16b9850ab5fc9e9d (diff)
back to ref<EvalState> in NixRepl
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh5
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;