mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-21 12:29:23 +01:00
Fixing error line numbering. (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=907
This commit is contained in:
parent
c3d170ba8b
commit
795df1e207
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user