Go Down

Topic: A handy hint? or not. Blink without delay 3.0. (Read 3196 times) previous topic - next topic

WizenedEE



Code: [Select]
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, :( . 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: [Select]

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.

Coding Badly

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.

WizenedEE

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

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

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