Go Down

Topic: 'C' Pre-processor implementation (Read 801 times) previous topic - next topic

Arthur168

I like to use #defines to do simple arthmetic for me i.e.

#define NUM_DAYS     7
#define HOURS_IN_DAY 24
#define HOURS_IN_WEEK (NUM_DAYS * HOURS_IN_DAY)

but it doesn't work.
How much of the 'C' pre-processor is implemented in Arduino?

dxw00d


Arthur168


Go Up