20 lines
314 B
C
20 lines
314 B
C
#pragma once
|
|
|
|
#if defined(ERR) || defined(EXPLAIN)
|
|
void l(const char *fmt, ...);
|
|
#endif
|
|
|
|
#ifdef ERR
|
|
#define L(...) l(__VA_ARGS__)
|
|
#else
|
|
#define L(...)
|
|
#endif
|
|
|
|
#ifdef EXPLAIN
|
|
extern int explain;
|
|
#define E(...) if (explain) { \
|
|
l(__VA_ARGS__); \
|
|
} else
|
|
#else
|
|
#define E(...)
|
|
#endif
|