Particle Tools Changelog

2/2/2017: Preprocessor improvements

Here’s something new to make sure every day doesn’t feel like groundhog day: you can now use custom classes in your code on the Web IDE and you will no longer get tripped up by if else(foo).

class X {
};
// no longer says X does not name a type
void doit(X &x) {
}
bool foo, bar;
void setup() {
  X x;
  doit(x);
  if (bar) {
   return;
  }
  // no longer confuses else if(foo) with a function declaration...
  else if (foo)
    return;
}
5 Likes