#include <stdio.h>
#include "def.h"
Go to the source code of this file.
◆ PS_IPRINT_DECL
| #define PS_IPRINT_DECL |
( |
|
T | ) |
void T##_print(const struct T* self, char terminator, int indent) |
◆ PS_IPRINT_IMPL
| #define PS_IPRINT_IMPL |
( |
|
T, |
|
|
|
... |
|
) |
| |
Value:
{__VA_ARGS__}; \
if (terminator != 0) { \
putchar(terminator); \
} \
}
#define PS_IPRINT_DECL(T)
Definition at line 20 of file print.h.
◆ ps_next_indent
| #define ps_next_indent |
( |
| ) |
indent + 2 |
◆ PS_PRINT_DECL
| #define PS_PRINT_DECL |
( |
|
T | ) |
void T##_print(const struct T* self, char terminator) |
◆ PS_PRINT_IMPL
| #define PS_PRINT_IMPL |
( |
|
T, |
|
|
|
... |
|
) |
| |
Value:
{__VA_ARGS__}; \
if (terminator != 0) { \
putchar(terminator); \
} \
}
Definition at line 10 of file print.h.
◆ ps_print_indent
| #define ps_print_indent |
( |
| ) |
printf("%*s", indent, "") |