From cae280b3246a51cd485cb01c8ec73a205ceac7e8 Mon Sep 17 00:00:00 2001 From: katherine Date: Fri, 14 Jun 2019 18:48:19 -0700 Subject: add macro settings for colour and print fun --- doc/example.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/example.c') 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 */ -- cgit v1.2.3