feat: full featured dump

This commit is contained in:
Johann Dreo 2020-09-04 10:32:06 +02:00
commit 93402d0c4b
4 changed files with 156 additions and 50 deletions

View file

@ -1,4 +1,6 @@
#include <iostream>
#include <algorithm>
#include <random>
#include "../clutchlog/clutchlog.h"
@ -13,6 +15,10 @@ int main(/*const int argc, char* argv[]*/)
std::vector<std::string> msg = {"hello", "world", "!"};
CLUTCHDUMP(xdebug, msg);
CLUTCHDUMP(xdebug, msg, "test_{n}.dat");
std::vector<int> v(3);
std::generate(v.begin(), v.end(), std::rand);
CLUTCHDUMP(info, v, "rand_{n}.dat");
#endif
}