gap-system / ward

Code generation tool needed for HPC-GAP
Boost Software License 1.0
3 stars 7 forks source link

addguards: insert #line directives into generated files #26

Closed fingolfin closed 7 years ago

fingolfin commented 7 years ago

Resolves #23

fingolfin commented 7 years ago

The one drawback of this I can think of is if for some reason there is an error in the guard statements. One could improve the situation for that by inserting additional #line NNN "outputfilname" statemnts before guard statements, then errors in them would point to the right file, too. However, I cannot do that right now as addguards2 prints its output to stdout. I am also not sure how helpful this really is -- but if anybody ever runs into a situation where such a thing would be helpful, we could add it then (it's not very hard to do).