Implements an empty formatted output that does nothing.
More...
#include <fastarduino/empty_streams.h>
Implements an empty formatted output that does nothing.
It can be used everywhere a streams::ostream
is expected but produces no code at all. The following example shows how to add traces that can be disabled at compile time by defining a specific macro:
#ifdef NO_TRACE
#else
#endif
#ifdef NO_TRACE
#else
static char output_buffer[64];
auto trace = uatx.out();
#endif
void f(int value)
{
}
Hardware serial transmitter API.
Implements an empty formatted output that does nothing.
Empty version of streams API, useful when you want to introduce traces that you can easily disable wi...
#define F(ptr)
Force string constant to be stored as flash storage.
void endl(FSTREAM &stream)
Manipulator for an output stream, which will insert a new-line character and flush the stream buffer.
C++-like std::iostream facilities.
Definition at line 69 of file empty_streams.h.
The documentation for this class was generated from the following file: