Skip to content

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

Closed
@K5CZ

Description

@K5CZ

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

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