Skip to content

Make error numbers in files with macro directives always correspond to the original `.mod` file when `nolinemacro` is passed

When nolinemacro is passed, the error reported refers to the macro-expanded line number, not the line number in the original .mod file. For this, we need two outputs of the macro processor, one with @#line commands that will be parsed by the preprocessor and one with or without @#line commands (deponding on whether the nolinemacro option was passed) that would eventually be saved as the macro-expanded .mod file (if savemacro was passed).

Also decide whether the user even would want a macro-expanded .mod file with @#line commands.

Also when nolinemacro is passed, the filename is not reported in parsing messages. This will be fixed by the above change.

Edited by Houtan Bastani