diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-28 19:24:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-28 20:29:59 +0300 |
commit | df1ef68cd8e8582724ce1192bfc202e0b9aeaf0c (patch) | |
tree | b731ca4c68e60c00c7e7d499dbf4868ee7b71f44 /libbutl/prompt.hxx | |
parent | 7a4fc37f264cdb67f2f83fa92703c869215bbc86 (diff) |
Get rid of C++ modules related code and rename *.mxx files to *.hxx
Diffstat (limited to 'libbutl/prompt.hxx')
-rw-r--r-- | libbutl/prompt.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libbutl/prompt.hxx b/libbutl/prompt.hxx new file mode 100644 index 0000000..90b8dbf --- /dev/null +++ b/libbutl/prompt.hxx @@ -0,0 +1,20 @@ +// file : libbutl/prompt.hxx -*- C++ -*- +// license : MIT; see accompanying LICENSE file + +#pragma once + +#include <string> + +#include <libbutl/export.hxx> + +namespace butl +{ + // The Y/N prompt. The def argument, if specified, should be either 'y' or + // 'n'. It is used as the default answer, in case the user just hits enter. + // + // Write the prompt to diag_stream. Throw ios_base::failure if no answer + // could be extracted from stdin (for example, because it was closed). + // + LIBBUTL_SYMEXPORT bool + yn_prompt (const std::string&, char def = '\0'); +} |