diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/example.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/example.c b/doc/example.c index 6341a1f..0229d2a 100644 --- a/doc/example.c +++ b/doc/example.c @@ -1,3 +1,10 @@ +/* SIMPLE_TEST_PRINT_FUN may be redefined like so. default is `printf` */ +#define stderr_redirect(...) fprintf(stderr, __VA_ARGS__) +#define SIMPLE_TEST_PRINT_FUN stderr_redirect + +/* colour output is on by default, but can be disabled */ +/* #define SIMPLE_TEST_USE_COLOUR false */ + #include "../simple-test.h" /* global variables, functions, and includes must come before BEGIN_TEST */ |