Doxygen itself can parse nested C comments. So a solution I found is this:

#ifdef THIS_IS_NOT_DEFINED
/** This is some documentation.
 * Example:
 * \code
 * /* look this is a c-style comment! */
 * \endcode
 */
#endif

Unfortunately, it doesn't seem possible to get Doxygen not to escape the
ampersand in / unless it's within a \htmlonly block. On top of that, a
\code block disables Doxygen commands, so \htmlonly sadly isn't available.
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to