File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3131package builder
3232
3333import (
34+ "regexp"
35+
3436 "github.com/arduino/arduino-builder/types"
3537 "github.com/arduino/arduino-builder/utils"
36- "regexp"
3738)
3839
3940type SketchSourceMerger struct {}
@@ -43,12 +44,12 @@ func (s *SketchSourceMerger) Run(ctx *types.Context) error {
4344
4445 lineOffset := 0
4546 includeSection := ""
47+ includeSection += "#line 1 " + utils .QuoteCppString (sketch .MainFile .Name ) + "\n "
48+ lineOffset ++
4649 if ! sketchIncludesArduinoH (& sketch .MainFile ) {
4750 includeSection += "#include <Arduino.h>\n "
4851 lineOffset ++
4952 }
50- includeSection += "#line 1 " + utils .QuoteCppString (sketch .MainFile .Name ) + "\n "
51- lineOffset ++
5253 ctx .IncludeSection = includeSection
5354
5455 source := includeSection
You can’t perform that action at this time.
0 commit comments