mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Fixing error line numbering. (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=907
This commit is contained in:
@ -205,7 +205,8 @@ public class PdePreprocessor {
|
||||
for (int i = 0; i < prototypes.size(); i++) {
|
||||
out.print(prototypes.get(i) + "\n");
|
||||
}
|
||||
out.println("#line 1");
|
||||
String[] lines = program.substring(0, prototypeInsertionPoint).split("\n", -1);
|
||||
out.println("#line " + (lines.length - 1));
|
||||
out.print(program.substring(prototypeInsertionPoint));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user