Skip to content

defines not working correct in .ino file #2625

Closed
@NicoHood

Description

@NicoHood
void setup() {

}

void loop() {

}

#ifndef thisisnevereverdefined

#else
//this error is displayed in line 4??
wordthatshouldnotcompile
#endif

void thisEmptyMethodeCausesTheError(void)
{

}
 sketch_feb11a.ino:4:1: error: 'wordthatshouldnotcompile' does not name a type Error compiling.

using 1.6, Windows. Could be similar to this:
#2622 (comment)

oh well i hate those bugs

Metadata

Metadata

Assignees

Labels

Component: PreprocessorThe Arduino sketch preprocessor converts .ino files into C++ code before compilation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions