Methods for parsing C++ defines?
<p>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. </p>

<p>Each of these sets of defines has a prefix which differentiates it from the others.  Something like:</p>

<p>MSG_GOOD... MSG_BAD... MSG_INDIFFERENT...</p>

<p>RETURN_OK... RETURN_OMG.. RETURN_WHAT...</p>

<p>But hundreds of them.  This makes things rather hard to debug.</p>

<p>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. </p>
