Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defines not working correct in .ino file #2625

Closed
NicoHood opened this issue Feb 11, 2015 · 3 comments
Closed

defines not working correct in .ino file #2625

NicoHood opened this issue Feb 11, 2015 · 3 comments
Assignees
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone

Comments

@NicoHood
Copy link
Contributor

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

@ffissore ffissore added the Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation label Feb 11, 2015
@ffissore ffissore self-assigned this Feb 11, 2015
@ffissore
Copy link
Contributor

New preprocessor tracked at #2636. Builds for testing it are available

@ffissore
Copy link
Contributor

Fixed by #3779

@ffissore ffissore added this to the Release 1.6.6 milestone Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Projects
None yet
Development

No branches or pull requests

2 participants