Pages: [1]   Go Down
Author Topic: 'C' Pre-processor implementation  (Read 717 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In what way doesn't it work?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, the fault was elsewhere.
Logged

Pages: [1]   Go Up
Jump to: