Commits

Greg Ward committed 857bb72

build scripts: include line number info in generated C files

  • Participants
  • Parent commits 48c603d

Comments (0)

Files changed (1)

                         "%s, line %d: invalid substitution: @%s@"
                         % (self.infile.name, lineno, match.group(1)))
                 method(outfile)
+                outfile.write("#line %d \"%s\"\n" %
+                              (lineno+1, self.infile.name))
             else:
                 outfile.write(line)