PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
phoenix_isOk.cpp File Reference
#include <iostream>
#include "phoenix_isOk.h"
+ Include dependency graph for phoenix_isOk.cpp:

Go to the source code of this file.

Functions

std::string phoenix_isOk (bool b)
 Print OK or FAIL depending on the given boolean. More...
 

Function Documentation

◆ phoenix_isOk()

std::string phoenix_isOk ( bool  b)

Print OK or FAIL depending on the given boolean.

Parameters
b: boolean to be checked
Returns
OK on true, FAIL on false

Definition at line 14 of file phoenix_isOk.cpp.

14  {
15  const char* res[] = {"\033[31mFAIL\033[0m", "\033[32mOK\033[0m"};
16  return std::string(res[b]);
17 }

Referenced by phoenix_check(), and testIsOk().

+ Here is the caller graph for this function: