mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
have only one debuggerHook declaration
This commit is contained in:
parent
eaecaaa00b
commit
3dfab6e534
4 changed files with 3 additions and 7 deletions
|
@ -93,10 +93,6 @@ EvalCommand::EvalCommand()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
extern std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EvalCommand::~EvalCommand()
|
EvalCommand::~EvalCommand()
|
||||||
{
|
{
|
||||||
if (evalState)
|
if (evalState)
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
|
|
||||||
|
|
||||||
static char * allocString(size_t size)
|
static char * allocString(size_t size)
|
||||||
{
|
{
|
||||||
char * t;
|
char * t;
|
||||||
|
|
|
@ -25,7 +25,6 @@ enum RepairFlag : bool;
|
||||||
|
|
||||||
typedef void (* PrimOpFun) (EvalState & state, const Pos & pos, Value * * args, Value & v);
|
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 Expr &expr);
|
||||||
void printStaticEnvBindings(const StaticEnv &se, int lvl = 0);
|
void printStaticEnvBindings(const StaticEnv &se, int lvl = 0);
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
|
/* Launch the nix debugger */
|
||||||
|
|
||||||
|
std::function<void(const Error * error, const Env & env, const Expr & expr)> debuggerHook;
|
||||||
|
|
||||||
/* Displaying abstract syntax trees. */
|
/* Displaying abstract syntax trees. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue