Hi, I have some code like this:
if ( a < 99999 ) {
do_something();
}
Is there some way to modify it like this:
#define NUMBER_OF_9 5
if ( a < (power(10,NUMBER_OF_9) - 1) ) {
do_something();
}
I need the power() function to be extended while pre-compile, and
generate code like the first peice for compiler.
Or, Is the complier smart enough to compute the exponent since the two
parameter are all const?