aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-10-11 14:42:29 -0600
committerBen Burdette <bburdette@gmail.com>2021-10-11 14:42:29 -0600
commit2ee1fa4afd69226f16305e792d5110fd36669c6b (patch)
tree5c01ccde7d1f747cbd72a364afddba89d607ff1f /src/libcmd/command.cc
parentaad27143c67c863bd4886186bdf68f4796ca26c3 (diff)
add nullable Expr argument
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r--src/libcmd/command.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index 55f6ffd00..705b30d53 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -97,7 +97,7 @@ EvalCommand::EvalCommand()
});
}
// extern std::function<void(const Error & error, const std::map<std::string, Value *> & env)> debuggerHook;
-extern std::function<void(const Error & error, const Env & env)> debuggerHook;
+extern std::function<void(const Error & error, const Env & env, const Expr & expr)> debuggerHook;
ref<EvalState> EvalCommand::getEvalState()
{
@@ -105,7 +105,7 @@ ref<EvalState> EvalCommand::getEvalState()
if (!evalState) {
evalState = std::make_shared<EvalState>(searchPath, getStore());
if (startReplOnEvalErrors)
- debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error & error, const Env & env) {
+ debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error & error, const Env & env, const Expr & expr) {
printError("%s\n\n" ANSI_BOLD "Starting REPL to allow you to inspect the current state of the evaluator.\n" ANSI_NORMAL, error.what());
// printEnvPosChain(env);
printEnvBindings(env);