Update of /cvsroot/boost/boost/boost/wave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8973/boost/wave
Modified Files:
preprocessing_hooks.hpp
Log Message:
Added new preprocessing hook function: found_line_directive() to be called when
a #line directive is encountered.
Index: preprocessing_hooks.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/wave/preprocessing_hooks.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- preprocessing_hooks.hpp 17 Jun 2006 15:48:01 -0000 1.15
+++ preprocessing_hooks.hpp 25 Jun 2006 17:17:28 -0000 1.16
@@ -481,8 +481,8 @@
#if BOOST_WAVE_SUPPORT_WARNING_DIRECTIVE != 0
///////////////////////////////////////////////////////////////////////////
//
- // The function 'found_warning_directive' is called, will be called by
the
- // library, whenever a #warning directive is found.
+ // The function 'found_warning_directive' will be called by the library
+ // whenever a #warning directive is found.
//
// The parameter 'ctx' is a reference to the context object used for
// instantiating the preprocessing iterators by the user.
@@ -499,8 +499,8 @@
///////////////////////////////////////////////////////////////////////////
//
- // The function 'found_error_directive' is called, will be called by the
- // library, whenever a #error directive is found.
+ // The function 'found_error_directive' will be called by the library
+ // whenever a #error directive is found.
//
// The parameter 'ctx' is a reference to the context object used for
// instantiating the preprocessing iterators by the user.
@@ -513,6 +513,30 @@
bool
found_error_directive(ContextT const& ctx, ContainerT const& message)
{ return false; }
+
+ ///////////////////////////////////////////////////////////////////////////
+ //
+ // The function 'found_line_directive' will be called by the library
+ // whenever a #line directive is found.
+ //
+ // The parameter 'ctx' is a reference to the context object used for
+ // instantiating the preprocessing iterators by the user.
+ //
+ // The parameter 'arguments' references the argument token sequence of the
+ // encountered #line directive.
+ //
+ // The parameter 'line' contains the recognized line number from the #line
+ // directive.
+ //
+ // The parameter 'filename' references the recognized file name from the
+ // #line directive (if there was one given).
+ //
+ ///////////////////////////////////////////////////////////////////////////
+ template <typename ContextT, typename ContainerT>
+ void
+ found_line_directive(ContextT const& ctx, ContainerT const& arguments,
+ unsigned int line, std::string const& filename)
+ {}
};
///////////////////////////////////////////////////////////////////////////////
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs