tcheck.cpp - numeric - C++ library with numerical algorithms
(HTM) git clone git://src.adamsgaard.dk/numeric
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tcheck.cpp (279B)
---
1 // Function used for reporting the condition of a
2 // statement to stdout using ANSI colors.
3 #include <iostream>
4
5 void check(const bool statement)
6 {
7 if (statement == true)
8 std::cout << "\t\033[0;32mPassed\033[0m\n";
9 else
10 std::cout << "\t\033[1;31mFail!!\033[0m\n";
11 }