have only one debuggerHook declaration
This commit is contained in:
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user