Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

Unable to Compile with typedef as function argument #442

Open chrapchp opened 7 years ago

chrapchp commented 7 years ago

Just installed Stino2017 under ST 3 under windows 7. I tried to compile a project that runs ok using the arduinio IDE. When using Stino I would get an error "XXX not defined defined in this scope."

It boiled down to the following:

//test.ino

typedef struct _alarmEntry { short hours; short minutes; short seconds; int id; } AlarmEntry;

AlarmEntry lightsOnAlarm = { 4, 0, 0, -1 }; AlarmEntry lightsOffAlarm = { 23, 0, 0, -1};

// this does not compile in Stino but does in Arduino IDE void eek(AlarmEntry x) {

}

// this compiles in Stino //void eek( struct _alarmEntry x) {

//}

// this compiles in Stino and it should not //eek(AlarmEntry x ) {

//}

int led = 13;

void setup() {

}

void loop() {

}