12 #ifndef ROC_CORE_PRINTER_H_
13 #define ROC_CORE_PRINTER_H_
44 void flush_(
bool force);
#define ROC_ATTR_PRINTF(fmt_pos, args_pos)
Function gets printf-like arguments.
Base class for non-copyable objects.
size_t writef(const char *format,...)
Write text.
@ BufferSize
Maximum buffer size.
void(* PrintlnFunc)(const char *buf, size_t bufsz)
Printing function.
Printer(PrintlnFunc println_func=NULL)
Initialize printer. If println_func is NULL, prints text to console.
~Printer()
Flush and destroy.
Commonly used types and functions.