I'm building a driver in C++ which relies heavily on another dll (surprise!). This dll comes with a header which contains a huge list of defines. Each define represents different return, message and error codes.
Each of these sets of defines has a prefix which differentiates it from the others. Something like:
MSG_GOOD... MSG_BAD... MSG_INDIFFERENT...
RETURN_OK... RETURN_OMG.. RETURN_WHAT...
But hundreds of them. This makes things rather hard to debug.
Ideally, I'd like to find a way to get some kind of reasonable log output with plain text. I was thinking it might be possible to parse the H file at run time, but a less complex compile time option would be much better.