File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 31
31
package builder
32
32
33
33
import (
34
- "regexp"
35
-
36
34
"github.com/arduino/arduino-builder/types"
37
35
"github.com/arduino/arduino-builder/utils"
36
+ "regexp"
38
37
)
39
38
40
39
type SketchSourceMerger struct {}
@@ -44,12 +43,12 @@ func (s *SketchSourceMerger) Run(ctx *types.Context) error {
44
43
45
44
lineOffset := 0
46
45
includeSection := ""
47
- includeSection += "#line 1 " + utils .QuoteCppString (sketch .MainFile .Name ) + "\n "
48
- lineOffset ++
49
46
if ! sketchIncludesArduinoH (& sketch .MainFile ) {
50
47
includeSection += "#include <Arduino.h>\n "
51
48
lineOffset ++
52
49
}
50
+ includeSection += "#line 1 " + utils .QuoteCppString (sketch .MainFile .Name ) + "\n "
51
+ lineOffset ++
53
52
ctx .IncludeSection = includeSection
54
53
55
54
source := includeSection
You can’t perform that action at this time.
0 commit comments