Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Putting macros in comment blocks

This topic is 5536 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, is it possible to use macros defines in comment blocks? I want to beable to include common header info in my code documentation when I use document generators. Thanks Example: #define __TITLE_BAR__ <table BORDER=0 WIDTH="100%"><th scope="col" colspan="1" bgcolor="#0055BB" align="left" valign="middle"> #define __END_TITLE_BAR__ </th></table> /* @class @discussion __TITLE_BAR__ General Class Overview __END_TITLE_BAR__ description text here.... __TITLE_BAR__ Class Usage __END_TITLE_BAR__ describe how to use the class here... */ [edited by - _walrus on April 29, 2003 9:59:21 AM] [edited by - _walrus on April 29, 2003 10:00:20 AM]

Share this post

Link to post
Share on other sites
And it should be that way. The macro language is for the language and generating the language in question.

In the comment block, you can write your html, though. Copy and paste. Or get the doxygen source and add some macro thingies like you want.

Good luck

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!