From 5f2492eaecfe8d3451812e894852b1330492e827 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 16 Apr 2007 15:03:19 +0000 Subject: * New primop "throw " to throw an error. This is like abort, only thrown errors are caught by the top-level derivation evaluation in nix-env -qa / -i. --- src/libexpr/eval.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libexpr/eval.cc') diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 456bc25f3278..552b586250b1 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -616,6 +616,9 @@ static char * deepestStack = (char *) -1; /* for measuring stack usage */ Expr evalExpr2(EvalState & state, Expr e) { + /* When changing this function, make sure that you don't cause a + (large) increase in stack consumption! */ + char x; if (&x < deepestStack) deepestStack = &x; -- cgit 1.4.1