You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The insertion point of prototypes may be detected to be in the middle
of a line for example in the following sketch:
int a; int b=forwardDeclared();
void setup() {}
void loop() {}
int forwardDeclared() { return 0; }
the insertion point is determined to be between `int a;` and `int b=..`
since the latter declaration use a forward-declared function to
initialize variable.
Before this patch this resulted in a stray `#line` directive inserted in
the middle of a line:
int a; #line 1 ...... <- added prototype line
int forwardDeclared(); <- added prototype
#line 2..... <- other prototypes....
......
This patch avoids the situation above by inserting a newline just before
the first `#line` directive if the insertion point happens to be in the
middle of a line.
Fix#7
0 commit comments