1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 11:41:15 +02:00

* New primop "throw <string>" to throw an error. This is like abort,

only thrown errors are caught by the top-level derivation evaluation
  in nix-env -qa / -i.
This commit is contained in:
Eelco Dolstra 2007-04-16 15:03:19 +00:00
parent 0a8eeea9d8
commit 5f2492eaec
3 changed files with 13 additions and 0 deletions

View file

@ -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;