Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The H-Files
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00141222
Message ID:
00141254
Views:
20
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform