L
leonm54
I have nightmares about code similar to the following:
#define NUM_TRIES 10 // Number of tries before we eject them
....
if ( iCurrentTicks > NUM_TRIES)
{
....
}
Maybe preprocessors and compilers have progressed where the previous is
no longer an issue. I remember distinctly that on the compilers I have
used in the past the previous if statement would become, after
pre-processing:
if( iCurrentTicks > 10 // Number of tries before we eject them)
This would cause all kinds of issues when the code compiled.
Am I out of touch, or is this sort of thing still a potential issue?
#define NUM_TRIES 10 // Number of tries before we eject them
....
if ( iCurrentTicks > NUM_TRIES)
{
....
}
Maybe preprocessors and compilers have progressed where the previous is
no longer an issue. I remember distinctly that on the compilers I have
used in the past the previous if statement would become, after
pre-processing:
if( iCurrentTicks > 10 // Number of tries before we eject them)
This would cause all kinds of issues when the code compiled.
Am I out of touch, or is this sort of thing still a potential issue?