Pages: 1 [2]   Go Down
Author Topic: A handy hint? or not. Blink without delay 3.0.  (Read 1991 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 17
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
static uint16_t _lasttime, uint16_t _thistime

is illegal. You might be able to do some strange things with a struct though:

According to the standard. 6.5.3 - 3

Quote
If the for-init-statement is a declaration, the scope of the name(s) declared extends to the end of the for-statement.

But I see the static now, smiley-sad . hmmm

Well I wasn't referring to it being a for loop, I was saying that you can't use commas to declare two variables with different types --- like one int and one float or one static int and one int.

Code:
You can give Google a helping hand.  If you or anyone you know has a blog, add a paragraph or two about the macro and include a link to this topic.
Well then I'd feel special.

Is the playground a good place to put it? Or put a feature request in the google code place.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12286
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is the playground a good place to put it?

Yes.

Quote
Or put a feature request in the google code place.

Yes.

I believe a Github pull request increases the chances of getting it into a release.
Logged

Offline Offline
Edison Member
*
Karma: 17
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's a link to the thread I just made about this macro:

http://arduino.cc/forum/index.php/topic,124974.0.html
Logged

Pages: 1 [2]   Go Up
Jump to: