Go Down

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

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



Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy