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:
parent
0a8eeea9d8
commit
5f2492eaec
3 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue