io.cpp 322 Bytes
Newer Older
Matteo's avatar
Matteo committed
1
2
3
4
5
6
7
8
9
10
11
12
#include "io.hpp"

namespace videoanalyser {
namespace io {
void pprint(std::string msg, Color color) { std::cout << color << msg << END << std::endl; }

void print_error_and_exit(std::string msg) {
    std::cerr << RED << msg << END << std::endl;
    exit(EXIT_FAILURE);
}
}  // namespace io
}  // namespace videoanalyser