1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

makeh:: linenumbers for EX

This commit is contained in:
Zeno Rogue 2019-08-25 19:14:17 +02:00
parent 02269267c9
commit c5acaacc8d

View File

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