Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The H-Files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00141222
Message ID:
00141254
Vues:
21
>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
Fil
Voir

Click here to load this message in the networking platform