MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / init

Method init

extlibs/fmt/src/os.cc:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void windows_error::init(int err_code, string_view format_str,
105 format_args args) {
106 error_code_ = err_code;
107 memory_buffer buffer;
108 internal::format_windows_error(buffer, err_code, vformat(format_str, args));
109 std::runtime_error& base = *this;
110 base = std::runtime_error(to_string(buffer));
111}
112
113void internal::format_windows_error(internal::buffer<char>& out, int error_code,
114 string_view message) FMT_NOEXCEPT {

Callers

nothing calls this directly

Calls 2

vformatFunction · 0.50
to_stringFunction · 0.50

Tested by

no test coverage detected