We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f60e49d + 1b8fd35 commit 829f822Copy full SHA for 829f822
src/tinyformat.h
@@ -109,7 +109,7 @@ namespace tinyformat {}
109
namespace tfm = tinyformat;
110
111
// Error handling; calls assert() by default.
112
-// #define TINYFORMAT_ERROR(reasonString) your_error_handler(reasonString)
+#define TINYFORMAT_ERROR(reasonString) throw std::runtime_error(reasonString)
113
114
// Define for C++11 variadic templates which make the code shorter & more
115
// general. If you don't define this, C++11 support is autodetected below.
0 commit comments