![]() |
THM1176InstrumentDriver
1.0
C++ API for Metrolab THM1176
|
Collection of utility macros for error messages. More...
#include <iostream>
#include <sstream>
#include <cassert>
#include <thread>
#include <chrono>
Go to the source code of this file.
Macros | |
#define | MTL__STR_HELPER__(x) #x |
#define | MTL__STR__(x) MTL__STR_HELPER__(x) |
#define | MTL__LOCATION_HELPER__ __FILE__ ":" MTL__STR__(__LINE__) |
#define | MTL__LOCATION__ (MTL__LOCATION_HELPER__) |
#define | CERR(__X__) std::cerr << __X__ |
#define | COUT(__X__) std::cout << __X__ |
#define | WCOUT(__X__) std::wcout << __X__ |
#define | MTL_Assert assert |
#define | MTL_StaticAssert static_assert |
#define | MTL_SleepMs(_ms_) std::this_thread::sleep_for(std::chrono::milliseconds(_ms_)) |
#define | MTL_Unused(x) (void)x; |
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 | ) | MTL__STR_HELPER__(x) |
#define MTL_SleepMs | ( | _ms_ | ) | std::this_thread::sleep_for(std::chrono::milliseconds(_ms_)) |