3 ms·
This feels like too much of a "ricer" feature, at least the way it's implemented. Instead, you want: * A pretty-printer library (possibly single-header) * A f
by einpoklum 7y ago
This feels like too much of a "ricer" feature, at least the way it's implemented.
Instead, you want:
* A pretty-printer library (possibly single-header)
* A function for obtaining the typename; see:
https://stackoverflow.com/q/35941045/1593077
https://stackoverflow.com/a/56766138/1593077
for a constexpr approach.
and it won't hurt to have:
* A logging library with log levels (so that you don't necessarily need to recompile to enable these outputs)
* A stack trace printing library
When you have that, such a macro becomes nearly trivial. Oh, yeah, and - drop the silly ANSI coloring.
- stjohnswarts 7y agoHe would be a lot more receptive if you didn't use terms like "ricer" and seemingly demanding changes rather than recommending them.
- quickthrower2 7y agoWhat’s a ricer?
- Rietty 7y agoI honestly prefer the ANSI colouring. It makes it very easy to quickly differentiate different parts of the line and zone in on what is needed.