Open mateasmario opened 2 years ago
There is indeed a simple enough workaround for this, which I use in my own projects.
You need to add a line of code to the doxyrest/frame/cfamily/utils.lua
file, at line 505:
function getDefineDeclString(define, nameTemplate, indent)
local s = "#define "
s = s .. fillItemNameTemplate(nameTemplate, define.name, define.id)
if #define.paramArray > 0 then
-- no space between name and params!
s = s .. getParamArrayString(s, define.paramArray, false, "(", ")", indent, " \\\n")
end
> s = s .. '\t' .. getLinkedTextString(define.initializer, true)
return s
end
You can see the line of code in question, I put a >
character at the beginning of the line.
I'm trying to generate documentation for a C++ source code (file
main.cpp
) using Doxygen, doxyrest and Sphinx. The source code looks like this:I have both
GENERATE_HTML
andGENERATE_XML
enabled in Doxygen, and everything seems to be fine. The problem is when I'm trying to generate.rst
files based on my newly generatedxml-dir
folder. I've seen that the value of thepublicVar
integer is written in therst
(s), butMAXIMUMSIZE
's value is not.I need my Sphinx documentation to also provide the value of the #define, not only its name.
This is how Sphinx looks like:
And I want it to be like that:
Is there any stuff in
doxyrest-config.lua
I need to change in order to keep the macro values?