makeh:: linenumber improvements

This commit is contained in:
Zeno Rogue 2019-08-26 09:10:28 +02:00
parent 61ea588ffb
commit a33a35ad00
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void gen(string sf) {
}
else {
mark_file();
cout << "#line " << lineid << " \"" << sf << "\"\n";
cout << "#line " << lineid-1 << " \"" << sf << "\"\n";
for(int i=0;; i++) {
if(i == int(t.size())) { cerr << "Error: unrecognizable EX: " << s << "\n"; }
else if(t[i] == '{') {