Function use

Synopsis

#include <include/internal/catch_console_colour.h>

static void use(Code _colourCode)

Description

No description yet.

Source

Lines 223-232 in include/internal/catch_console_colour.cpp. Line 59 in include/internal/catch_console_colour.h.

void Colour::use( Code _colourCode ) {
    static IColourImpl* impl = platformColourInstance();
    // Strictly speaking, this cannot possibly happen.
    // However, under some conditions it does happen (see #1626),
    // and this change is small enough that we can let practicality
    // triumph over purity in this case.
    if (impl != nullptr) {
        impl->use( _colourCode );
    }
}





Add Discussion as Guest

Log in