Thomas Guest wrote:

I've updated these files in the zip archive available on my website:

http://homepage.ntlworld.com/thomas.guest/qbk_proposal/


Here's some quirks I'm encountering with macros. Given this QuickBook
source:

    [def std [*std]]
    [def __my_macro__ Macro Expanded]
    [section Was The __my_macro__?]
    [h2 or was the  __my_macro__ in a heading?]
    Maybe the __my_macro__ in plain text...

      // __my_macro__ in comments?
      void maybe_in_source() {
        std::cout << __my_macro__ << "in string __my_macro__" << std::endl;
      }

    [endsect]

I get this output (with the source code formatted nicer, though)


Was The __my_macro__?


or was the Macro Expanded in a heading?

    Maybe the Macro Expanded in plain text...

// __my_macro__ in comments?
void maybe_in_source() {
*std*::cout << Macro Expanded << "in string __my_macro__" << *std*::endl;
}



Macro expansion doesn't work in the section title. Maybe this just never worked, as it seems unlikely that anything you did would break that but leave it working for headings and normal (not highlighted source) content. Or maybe I missed something merging your changes. Can you see if you get the same results?

It also gets skipped inside string literals and comments within
highlighted source code.  I think you had already mentioned this somewhere.

Have you had tried the update I mentioned last night?  I'm hoping that
builds cleanly with GCC now...

- james

--
__________________________________________________________
 James Fowler, Open Sea Consulting
 http://www.OpenSeaConsulting.com, Marietta, Georgia, USA
 Do C++ Right.  http://www.OpenCpp.org, opening soon!



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to