diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-08T14·11+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-08T14·11+0000 |
commit | 9088dee9e265db8176b61e53ac43a916fdd34a3d (patch) | |
tree | 42abd16be1b9bc4e4b5b4defdcd44b5bd9972740 /src/libexpr/eval.hh | |
parent | fa72ae1e9cad0dded28b965fe97293bbeeac031e (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.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 5562066fda97..11185159c123 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); |