Files CCore/inc/PrintError.h CCore/src/PrintError.cpp
PrintError is a Helper Type, it prints the text description of the system error value.
class PrintError
{
Sys::ErrorType error;
public:
explicit PrintError(Sys::ErrorType error_) : error(error_) {}
template <class P>
void print(P &out) const;
};
For example, in HCore:
Sys::Sem sys_sem; if( auto error=sys_sem.init() ) { Printf(Con,"initialization error = #;\n",PrintError(error)); }