diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-13 14:42:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-13 14:42:36 +0200 |
commit | b0bf46a7942611729dd8d9d8b8d78cedf26c4685 (patch) | |
tree | e652b1614c892216a328108767e35c129adf7d5f /libbutl/process.hxx | |
parent | 6a899e04950c3ba62a238cf7a672a94df6cea527 (diff) |
Add process_print_callback() function in addition to *_{start,run}_*()
Diffstat (limited to 'libbutl/process.hxx')
-rw-r--r-- | libbutl/process.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbutl/process.hxx b/libbutl/process.hxx index 8648690..5a6837f 100644 --- a/libbutl/process.hxx +++ b/libbutl/process.hxx @@ -827,6 +827,15 @@ namespace butl const process_env&, A&&... args); + // Call the callback without actually running/starting anything. + // + template <typename C, + typename... A> + void + process_print_callback (const C&, + const process_env&, + A&&... args); + // Conversion of types to their C string representations. Can be overloaded // (including via ADL) for custom types. The default implementation calls // to_string() which covers all the numeric values via std::to_string () and |