>Any advice? Or am I just outta luck on this one?
With all due respect to the other answer you received, I don't think this is a preprocessor issue. There's no reason why the compiler couldn't put #defines in its symbol table. "Preprocessing" is a misnomer anyway, these days, as the compiler can handle #defines in the same pass as everything else.
The real problem is this: Say you have a #define that's equal to 1. What happens if another #define also has that value? Which one should the debugger display?
This is where enums in C++ shine. The debugger can identify the type of a variable as an enum and can show you the value's symbol instead of its numeric value.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement