aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-03-14 11:58:11 -0600
committerBen Burdette <bburdette@protonmail.com>2022-03-14 11:58:11 -0600
commit3dfab6e534e0a1cf71c000a4d2a74e050ba576ce (patch)
tree8c19ec675d69776f88fe5c40bfe08fe21b45f9d9 /src/libexpr
parenteaecaaa00ba79b05f49a908f2c96c6507d3a2d7b (diff)
have only one debuggerHook declaration
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc2
-rw-r--r--src/libexpr/eval.hh1
-rw-r--r--src/libexpr/nixexpr.cc3
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index f21919598..6758677ca 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -37,8 +37,6 @@
namespace nix {
-std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
-
static char * allocString(size_t size)
{
char * t;
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index e1d117c36..5f4556053 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -25,7 +25,6 @@ enum RepairFlag : bool;
typedef void (* PrimOpFun) (EvalState & state, const Pos & pos, Value * * args, Value & v);
-extern std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
void printStaticEnvBindings(const Expr &expr);
void printStaticEnvBindings(const StaticEnv &se, int lvl = 0);
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc
index e09bd9484..add65c1a2 100644
--- a/src/libexpr/nixexpr.cc
+++ b/src/libexpr/nixexpr.cc
@@ -6,6 +6,9 @@
namespace nix {
+/* Launch the nix debugger */
+
+std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
/* Displaying abstract syntax trees. */