SPARK definition now available!

The SPARK compiler definition is now available on the IDE and CLI compile servers. This definition allows conditional compiling much like what is done with Arduino (eg. #if ARDUINO >= 100)). Typical use is as follows:

#if defined (SPARK)
// Spark code code goes here
#else
// Arduino code goes here
#endif

Thanks @Dave for getting it working! :smile:

4 Likes

Sorry again about the delay on this one!

Thanks!
David

3 Likes

Oh, BTW… tested and working. :smile:

1 Like

but this hit github a 3 weeks ago, surely its in 0.2.3, or is the cloud still on 0.2.2 (until today?)

@sej7278, it was working on local compiles but not on IDE and CLI. Now it works on everything :smile:

2 Likes

Hi @sej7278,

That was my bad, the build farm has a separate smaller makefile for user-projects, and it didn’t inherit the flags from that firmware makefile change from a few weeks ago.

Thanks!
David