107 std::size_t buffer_size_;
110 void operator=(
const dispatcher &) {}
121 if (message == buffer_ && strlen(buffer_) == buffer_size_ - 1)
129 return fallback(
strerror_s(buffer_, buffer_size_, error_code_));
133 int fallback(
int result) {
135 return result == 0 && strlen(buffer_) == buffer_size_ - 1 ?
143 buffer_ = strerror(error_code_);
149 dispatcher(
int err_code,
char *&buf, std::size_t buf_size)
150 : error_code_(err_code), buffer_(buf), buffer_size_(buf_size) {}
153 return handle(
strerror_r(error_code_, buffer_, buffer_size_));
int errno
Contains the last error code.
#define FMT_ASSERT(condition, message)