diff options
author | Guillaume Maudoux <layus.on@gmail.com> | 2016-11-25T14·48+0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-11-25T14·48+0100 |
commit | f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 (patch) | |
tree | 23a76a33f21ce39184bcbdcd28cb937d15968ce7 /src/libutil/util.hh | |
parent | 7ee43df8622cc0589d54248fb44cebe1c1d991d2 (diff) |
Get rid of unicode quotes (#1140)
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 1ede48a65ff2..5ffdbaa8869e 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -370,7 +370,7 @@ void ignoreException(); #define ANSI_RED "\e[31;1m" -/* Filter out ANSI escape codes from the given string. If ‘nixOnly’ is +/* Filter out ANSI escape codes from the given string. If 'nixOnly' is set, only filter escape codes generated by Nixpkgs' stdenv (used to denote nesting etc.). */ string filterANSIEscapes(const string & s, bool nixOnly = false); @@ -391,15 +391,15 @@ string get(const T & map, const string & key, const string & def = "") } -/* Call ‘failure’ with the current exception as argument. If ‘failure’ +/* 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, std::exception_ptr exc = std::current_exception()); -/* Evaluate the function ‘f’. If it returns a value, call ‘success’ - with that value as its argument. If it or ‘success’ throws an - exception, call ‘failure’. If ‘failure’ throws an exception, abort +/* Evaluate the function 'f'. If it returns a value, call 'success' + with that value as its argument. If it or 'success' throws an + exception, call 'failure'. If 'failure' throws an exception, abort the program. */ template<class T> void sync2async( @@ -415,8 +415,8 @@ void sync2async( } -/* Call the function ‘success’. If it throws an exception, call - ‘failure’. If that throws an exception, abort the program. */ +/* Call the function 'success'. If it throws an exception, call + 'failure'. If that throws an exception, abort the program. */ template<class T> void callSuccess( const std::function<void(T)> & success, |