Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust #line when generating .cpp file from .ino #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ else
applet/$(TARGET).cpp: $(TARGET).ino
test -d applet || mkdir applet
echo '#include "Arduino.h"' > applet/$(TARGET).cpp
echo '#line 1 "$(TARGET).ino"' >> applet/$(TARGET).cpp
cat $(TARGET).ino >> applet/$(TARGET).cpp
echo 'extern "C" void __cxa_pure_virtual() { while (1) ; }' >> applet/$(TARGET).cpp
cat $(ARDUINO_CORE)/main.cpp >> applet/$(TARGET).cpp
Expand Down
1 change: 0 additions & 1 deletion blink/blink.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* -*- c -*- */
#line 3

/*
* Arduino basic blink
Expand Down
1 change: 0 additions & 1 deletion motors/servo/servo.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* -*- c -*- */
#line 3

#include <Servo.h>

Expand Down
1 change: 0 additions & 1 deletion sunflower/sunflower.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Sunflower sketch: turn in the direction the light is brightest.
*/
#line 3

#include <Stepper.h>

Expand Down