| ??? 06/27/05 03:24 Read: times |
#95977 - confusion Responding to: ???'s previous message |
dear Michael,
i'm a bit confused, i recently started working with eval version of keil. i wrote a program
#define xtal 22.184
#define tic12 12/xtal
#define something 10000.0/tic12
void main(void)
{
unsigned int i;
i = something;
}
and i compiled it with PP directive ang compiler generated a preprocessed '.c' file as '.I' file and it was like this
#line 1 "test.c" /0
void main(void)
{
unsigned int i;
i = 10000.0/12/22.184;
}
it is expanding the non integer macros. Abhishek |



