Update of /cvsroot/boost/boost/boost/wave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8584/boost/wave

Modified Files:
      Tag: RC_1_34_0
        cpp_context.hpp 
Log Message:
Added is_macro_defined() as described in the docs.

Index: cpp_context.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/wave/cpp_context.hpp,v
retrieving revision 1.21.2.7
retrieving revision 1.21.2.8
diff -u -d -r1.21.2.7 -r1.21.2.8
--- cpp_context.hpp     20 Dec 2006 16:38:24 -0000      1.21.2.7
+++ cpp_context.hpp     6 Mar 2007 19:28:52 -0000       1.21.2.8
@@ -190,6 +190,9 @@
             bool is_predefined = false)
         { return macros.add_macro(name, has_params, parameters, definition, 
             is_predefined); }
+    template <typename StringT>
+    bool is_defined_macro(StringT const &str) 
+        { return macros.is_defined(str.begin(), str.end()); }
     template <typename IteratorT2>
     bool is_defined_macro(IteratorT2 const &begin, IteratorT2 const &end) 
         { return macros.is_defined(begin, end); }
@@ -214,12 +217,13 @@
     void reset_macro_definitions() 
         { macros.reset_macromap(); macros.init_predefined_macros(); }
 
-// get the pp-iterator version information 
+// get the Wave version information 
     static std::string get_version()  
         { return boost::wave::util::predefined_macros::get_fullversion(false); 
}
     static std::string get_version_string()  
         { return boost::wave::util::predefined_macros::get_versionstr(false); }
 
+// access current language options
     void set_language(boost::wave::language_support language_,
                       bool reset_macros = true) 
     { 
@@ -285,7 +289,7 @@
 //  expand_tokensequence(): 
 //      expands all macros contained in a given token sequence, handles '##' 
 //      and '#' pp operators and re-scans the resulting sequence 
-//      (essentially preprocesses the token sequence).
+//      (essentially pre-processes the token sequence).
 //
 //      The expand_undefined parameter is true during macro expansion inside
 //      a C++ expression given for a #if or #elif statement. 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to