class DiagnosticsReport
Defined at line 28 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.h
The Report function uses dl::Error::Printf format and store the string. It
has rules similar to dl::Error about being used once constructed and checked
after use. In turn, the Diagnostics object (below) has such rules too.
Public Methods
void Printf (const char * format)
This is effectively identical to Error::Printf but has to be written out
again because varargs. Since error_ is the first member, it should actually
be folded with Error::Printf by ICF.
Defined at line 14 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.cc
void DiagnosticsReport ()
Defined at line 30 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.h
void DiagnosticsReport (DiagnosticsReport && )
Defined at line 31 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.h
DiagnosticsReport & operator= (DiagnosticsReport && )
Defined at line 32 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.h
fit::error<Error> take_error ()
This is used via Diagnostics::take_error(), below. The return value is
convertible to any fit::result
::Error, ...> type. It's an assertion
failure unless exactly one Diagnostics API call has been made. This
object should be considered moved-from after this, but it's not an rvalue
overload to follow the fit::result model and not require typing std::move
at every invocation.
Defined at line 42 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.h
template <typename... T>
auto ok (T &&... value)
This is used in lieu of plain fit::ok(...) to indicate the state has been
checked and make it safe to destroy this object. It's an assertion
failure if any Diagnostics API calls have been made. This object should
be considered moved-from after this, as with take_error().
Defined at line 49 of file ../../sdk/lib/c/dlfcn/dl/diagnostics.h
Friends
class Diagnostics