by makecheck · 9y ago · 0 comments
0. Anything involving file and line number.
1. Generating a string version of something alongside the value of something, without repeating myself.
2. Creating printing macros to keep me from typing out the entire asinine syntax for something like “std::cerr << foo << bar << baz << std::endl” so I only need PRINT(foo << bar << baz). Substituting code fragments is dead simple with a macro and absurdly complex or impossible with other C++ mechanisms. Ironically I’m only doing it because of the poor design of the entire “iostream” stack.
No comments yet.