This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Code Generator: usage of the #line directive


Hello,

I have written a code generator which takes an XML document and
generate a C++ file. The XML document contains text element which
contains C++ code. I would like to be able to locate error message
based on the start of the text element. I think the #line directive is
to be use for this but I have trouble marking the end of an included
section.  The code from the XML document behave really like an include
and I would like to report errors in the same way.

Thanks for your help.


-- Olivier Delannoy ATER PRiSM Laboratory Versailles University, FRANCE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]