jbigot / zpp

The "Z" pre-processor, the last preprocessor you'll ever need
1 stars 2 forks source link

Issue line number directives #4

Open cjgillot opened 4 years ago

cjgillot commented 4 years ago

Understanding compilation errors in the zpp output can be challenging because of mismatching line numbers.

C family languages support #line directives. Those can be used to re-sync the compiler diagnostics to the pre-zpp input file.

I have a prototype implementation in gysela merge 633.

jbigot commented 4 years ago

Adding #line directive would indeed be a really good thing, I'd definitely accept a PR