diff options
author | Ben Burdette <bburdette@gmail.com> | 2022-01-08 11:03:48 -0700 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2022-01-08 11:03:48 -0700 |
commit | a963674d88f2f1af6181f126ed4288ec65b61fc6 (patch) | |
tree | ff9f0c5b4aa339f946181724a2cdfa0bc2d04488 /src/libexpr/eval.hh | |
parent | c51b527c280ee08b3ce3ca6d229139c4292b3176 (diff) |
optinoal error; compiles
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 3c74bb4a1..1a097ab8c 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -24,7 +24,7 @@ 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; +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); @@ -414,14 +414,7 @@ private: class DebugTraceStacker { public: - DebugTraceStacker(EvalState &evalState, DebugTrace t) - :evalState(evalState), trace(t) - { - - // evalState.debuggerHook(const Error & error, const Env & env, const Expr & expr); - - evalState.debugTraces.push_front(t); - } + DebugTraceStacker(EvalState &evalState, DebugTrace t); ~DebugTraceStacker() { // assert(evalState.debugTraces.front() == trace); |