This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Code Generator: usage of the #line directive
- From: "Olivier Delannoy" <olivier dot delannoy at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Mar 2007 10:29:30 +0200
- Subject: 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