Walter Meester
HoogkarspelNetherlands
Bruce,
>Is there any reason to use a #DEFINEd constant instead of a local var? I've seen it done, but am not aware if the rationale, particularly when trying to debug...
You talk about #DEFINE used in ordinary code ? so not about headerfiles are you ?
IMHO you only use locals when they can change during runtime. If they don't you can:
- use hardcoded values
- use #DEFINE if this value applies to more than one instance in code, so maintainability is increased.
Walter,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only