MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / make_error_str

Function make_error_str

system/lib/libcxx/src/system_error.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208#endif // _LIBCPP_HAS_THREADS
209
210string make_error_str(const error_code& ec, string what_arg) {
211 if (ec) {
212 if (!what_arg.empty()) {
213 what_arg += ": ";
214 }
215 what_arg += ec.message();
216 }
217 return what_arg;
218}
219
220string make_error_str(const error_code& ec) {
221 if (ec) {

Callers 1

system_errorMethod · 0.85

Calls 3

stringFunction · 0.50
emptyMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected