I am trying to write some Doxygen comment blocks, and I would like to include sample code snippets. Of course, I would like the examples to really compile so that they are not out of date.
My .cpp example (which is I \ include in the .h file) looks like this:
#include "stdafx.h"
and my header file (which I am running Doxygen) is as follows:
And I would like doxygen to just include stuff starting from "void demo" to the end of the file (but without // endcode).
I tried experimenting with \ dontinclude and \ skip, \ skipline and \ until, and I cannot figure out the correct spells.
EDIT: included my .h file, and now I almost got the correct spell. This is almost what I want, is there a way to use \ up without a tag and get rid of this last line of endcode from example.cpp?
c ++ doxygen
Eric H.
source share