From 7a59d5027f810efc35dd2b7859258a51d0b216cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 8 Jul 2018 13:58:44 +0200 Subject: [PATCH] Link the example from `CATCH_CONFIG_NOSTDOUT` documentation --- docs/configuration.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 276f7b8c..fc7241a2 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -66,13 +66,18 @@ By default a console width of 80 is assumed but this can be controlled by defini CATCH_CONFIG_NOSTDOUT -Catch does not use ```std::cout```, ```std::cerr``` and ```std::clog``` directly but gets them from ```Catch::cout()```, ```Catch::cerr()``` and ```Catch::clog``` respectively. If the above identifier is defined these functions are left unimplemented and you must implement them yourself. Their signatures are: +To support platforms that do not provide `std::cout`, `std::cerr` and +`std::clog`, Catch does not usem the directly, but rather calls +`Catch::cout`, `Catch::cerr` and `Catch::clog`. You can replace their +implementation by defining `CATCH_CONFIG_NOSTDOUT` and implementing +them yourself, their signatures are: std::ostream& cout(); std::ostream& cerr(); std::ostream& clog(); -This can be useful on certain platforms that do not provide the standard iostreams, such as certain embedded systems. +[You can see an example of replacing these functions here.]( +../examples/231-Cfg-OutputStreams.cpp) ## Fallback stringifier