9enum class PrinterType {
19 internal_custom_function,
22typedef std::function<void(FILE *,
bool, uint32_t)> printing_function;
26 const char *name, *description;
30 const char *not_truth;
33 printing_function custom_fn;
36 Printer(
const char *name,
const char *description, PrinterType type);
38 const char *name,
const char *description, printing_function custom_fn);
39 Printer(
const char *name,
const char *description,
const char *not_truth,
42 PrinterType get_type()
const;
44 template <
typename T>
void print(FILE *,
bool,
unsigned, T)
const;
48#define PRINTER(name, ...) \
50 name, { name, __VA_ARGS__ } \