Skip to main content
5 events
when toggle format what by license comment
Dec 19, 2014 at 20:28 comment added Greg Woods I suppose then it's not a compiler directive I'm talking about, more of a directive to the IDE, but that then doesn't make the code very portable. Nicer fail is a good compromise though.
Dec 19, 2014 at 16:57 comment added Chris Stratton The compilers involved are fairly target specific, so by the time a directive is read it is "too late" to choose between say Due (ARM) and Uno (ATmega). But you could put in traps so that the build will fail with an informative custom error if the wrong one is selected.
Dec 19, 2014 at 11:00 vote accept Greg Woods
Dec 19, 2014 at 10:58 comment added Greg Woods It seems an obvious compiler directive to have, but if it doesn't exist, that's fine. I just needed to be sure.
Dec 19, 2014 at 7:33 history answered Ignacio Vazquez-Abrams CC BY-SA 3.0