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

Arduino 1.5.6-r2 The directive " #if " not works properly #1983

Closed
K5CZ opened this issue Apr 2, 2014 · 1 comment
Closed

Arduino 1.5.6-r2 The directive " #if " not works properly #1983

K5CZ opened this issue Apr 2, 2014 · 1 comment
Assignees
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone

Comments

@K5CZ
Copy link

K5CZ commented Apr 2, 2014

Arduino 1.5.6-r2 IDE and Nightly build

Conditional #include is also processed although the condition is evaluated as FALSE

Source code example:

if defined(something_undefined)

Serial.print( "something_undefined is defined" ); //may not be printed and yes - is not printed

include //may not be included but yes - IS included!

else

Serial.print( "something_undefined is not defined" ); //may be printed and yes - is printed

endif

@K5CZ K5CZ changed the title The directive " #if " not works properly delete me, please Apr 2, 2014
@K5CZ K5CZ changed the title delete me, please The directive " #if " not works properly Apr 2, 2014
@K5CZ K5CZ changed the title The directive " #if " not works properly Arduino 1.5.6-r2 The directive " #if " not works properly Apr 2, 2014
@niesteszeck niesteszeck mentioned this issue Apr 2, 2014
@ffissore ffissore added the Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation label May 28, 2015
@ffissore ffissore self-assigned this May 28, 2015
@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