diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-03T14·45+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-03T14·45+0000 |
commit | c4f7ae4aa5fc7071cfa853ec5d75aaf00e7a97fc (patch) | |
tree | 99334d6825236ffcab5a64239b95878e733e9ab5 /src/libexpr/nixexpr.hh | |
parent | 1c9c0a5a46822be60c999f0196567c9e17cf5fa3 (diff) |
* Verify that all variables in a Nix expression are defined.
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index 011c2900e12a..26c29a2f38b1 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -68,6 +68,10 @@ Expr makeAttrs(const ATermMap & attrs); /* Perform a set of substitutions on an expression. */ Expr substitute(const ATermMap & subs, Expr e); +/* Check whether all variables are defined in the given expression. + Throw an exception if this isn't the case. */ +void checkVarDefs(const ATermMap & def, Expr e); + /* Create an expression representing a boolean. */ Expr makeBool(bool b); |