![]() |
C++Instrument Catalog MFC 1.2
Metrolab C++InstrumentCatalog for MFC
|
Collection of utility macros for error messages. More...
#include <functional>#include <mutex>#include <iostream>#include <sstream>#include <cassert>#include <thread>#include <chrono>

Go to the source code of this file.
Namespaces | |
| namespace | MTL |
| namespace | MTL::CerrSinkRedir |
Macros | |
| #define | MTL__STR_HELPER__(x) |
| #define | MTL__STR__(x) |
| #define | MTL__LOCATION_HELPER__ __FILE__ ":" MTL__STR__(__LINE__) |
| #define | MTL__LOCATION__ (MTL__LOCATION_HELPER__) |
| #define | CERR(__X__) |
| #define | COUT(__X__) |
| #define | WCOUT(__X__) |
| #define | MTL_Assert assert |
| #define | MTL_StaticAssert static_assert |
| #define | MTL_SleepMs(_ms_) |
| #define | MTL_Unused(x) |
Typedefs | |
| using | MTL::CerrSinkRedir::tOutputSink = std::function<void(const std::string &)> |
Functions | |
| tOutputSink & | MTL::CerrSinkRedir::CerrSink () |
| std::mutex & | MTL::CerrSinkRedir::CerrSinkMutex () |
| void | MTL::CerrSinkRedir::WriteCerr (const std::string &rMessage) |
| CerrSinkRedir::tOutputSink | MTL::SetCerrSink (CerrSinkRedir::tOutputSink rSink) |
| void | MTL::ResetCerrSink () |
Collection of utility macros for error messages.
Definition in file Helpers.h.
| #define MTL__LOCATION__ (MTL__LOCATION_HELPER__) |
| #define MTL__LOCATION_HELPER__ __FILE__ ":" MTL__STR__(__LINE__) |
| #define MTL__STR__ | ( | x | ) |
| #define MTL_SleepMs | ( | _ms_ | ) |