mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Tweak
This commit is contained in:
parent
f12d56b27b
commit
beaefdf706
3 changed files with 5 additions and 8 deletions
|
@ -383,7 +383,8 @@ string get(const T & map, const string & key, const string & def = "")
|
|||
|
||||
/* Call ‘failure’ with the current exception as argument. If ‘failure’
|
||||
throws an exception, abort the program. */
|
||||
void callFailure(const std::function<void(std::exception_ptr exc)> & failure);
|
||||
void callFailure(const std::function<void(std::exception_ptr exc)> & failure,
|
||||
std::exception_ptr exc = std::current_exception());
|
||||
|
||||
|
||||
/* Evaluate the function ‘f’. If it returns a value, call ‘success’
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue