MCPcopy Create free account
hub / github.com/FastLED/FastLED / from_error

Method from_error

src/fl/stl/asio/error_code.h:47–52  ·  view source on GitHub ↗

Convert from fl::task::Error for interop with existing FastLED code.

Source from the content-addressed store, hash-verified

45
46 /// Convert from fl::task::Error for interop with existing FastLED code.
47 static error_code from_error(const fl::task::Error &e) {
48 if (e.is_empty()) {
49 return error_code();
50 }
51 return error_code(errc::unknown, e.message);
52 }
53
54 /// Convert to fl::task::Error for interop with existing FastLED code.
55 fl::task::Error to_error() const {

Callers

nothing calls this directly

Calls 2

error_codeClass · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected