aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-08 14:11:19 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-08 14:11:19 +0000
commit9088dee9e265db8176b61e53ac43a916fdd34a3d (patch)
tree42abd16be1b9bc4e4b5b4defdcd44b5bd9972740 /src/libexpr/eval.hh
parentfa72ae1e9cad0dded28b965fe97293bbeeac031e (diff)
* Some refactoring of the exception handling code so that we can catch
Nix expression assertion failures.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 5562066fd..11185159c 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -37,6 +37,10 @@ struct EvalState
};
+MakeError(EvalError, Error)
+MakeError(AssertionError, EvalError)
+
+
/* Evaluate an expression to normal form. */
Expr evalExpr(EvalState & state, Expr e);