feat: full featured dump
This commit is contained in:
parent
7ef6459c35
commit
93402d0c4b
4 changed files with 156 additions and 50 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue