have only one debuggerHook declaration
This commit is contained in:
parent
eaecaaa00b
commit
3dfab6e534
|
@ -93,10 +93,6 @@ EvalCommand::EvalCommand()
|
|||
});
|
||||
}
|
||||
|
||||
extern std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
|
||||
|
||||
|
||||
|
||||
EvalCommand::~EvalCommand()
|
||||
{
|
||||
if (evalState)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue