2019-08-17 23:26:17 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2023-08-28 15:06:29 +02:00
|
|
|
#ifdef PLATFORM_NATIVE
|
2019-08-17 23:26:17 +02:00
|
|
|
|
|
|
|
class SerialMock {
|
|
|
|
public:
|
|
|
|
template< typename T>
|
|
|
|
static inline void print(const T & str) {
|
|
|
|
std::cout << str;
|
|
|
|
}
|
|
|
|
template< typename T>
|
|
|
|
static inline void println(const T & str) {
|
|
|
|
std::cout << str << std::endl;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2023-08-28 15:06:29 +02:00
|
|
|
static SerialMock Serial;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|