Skip to content

1.6 error in comment handling inside of strings #2641

Closed
@dieterm57

Description

@dieterm57

Following code does not compile:

  Serial.println("/\\");
  Serial.println("//");

but insert a comment in between:

  Serial.println("/\\");
  //\
  Serial.println("//");

... and it does
wtf?

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