3 #ifndef CUSTOMCOLOR_INCLUDED
4 #define CUSTOMCOLOR_INCLUDED
8 #ifndef ROOT_TError //'ROOT-style' inclusion guards.
19 namespace CocoaTutorials {
26 ::Error(
"FindFreeCustomColorIndex",
"gROOT is null");
32 if (!
gROOT->GetColor(i))
35 ::Error(
"FindFreeCustomColorIndex",
"no index found");
53 for (; nFound <
N; ++nFound) {
55 if (tmp[nFound] == -1)
60 std::copy(tmp, tmp + N, indices);
unsigned FindFreeCustomColorIndices(Color_t(&indices)[N])
Color_t FindFreeCustomColorIndex(Color_t start=1000)
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
void Error(ErrorHandler_t func, int code, const char *va_(fmt),...)
Write error message and call a handler, if required.