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 3131package builder
3232
3333import (
34- "regexp"
35-
3634 "github.com/arduino/arduino-builder/types"
3735 "github.com/arduino/arduino-builder/utils"
36+ "regexp"
3837)
3938
4039type SketchSourceMerger struct {}
@@ -44,12 +43,12 @@ func (s *SketchSourceMerger) Run(ctx *types.Context) error {
4443
4544 lineOffset := 0
4645 includeSection := ""
47- includeSection += "#line 1 " + utils .QuoteCppString (sketch .MainFile .Name ) + "\n "
48- lineOffset ++
4946 if ! sketchIncludesArduinoH (& sketch .MainFile ) {
5047 includeSection += "#include <Arduino.h>\n "
5148 lineOffset ++
5249 }
50+ includeSection += "#line 1 " + utils .QuoteCppString (sketch .MainFile .Name ) + "\n "
51+ lineOffset ++
5352 ctx .IncludeSection = includeSection
5453
5554 source := includeSection
You can’t perform that action at this time.
0 commit comments