22 lines
347 B
C++
22 lines
347 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#ifdef PLATFORM_NATIVE
|
|
|
|
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;
|
|
}
|
|
};
|
|
|
|
static SerialMock Serial;
|
|
|
|
|
|
#endif |