Reputation: 1337
I would like to define some variables and use them in .dox and plantuml in .dox. Is it possible to do that?
Currently, I defined the same variable at both places, Doxyfile and .pu to use the variable in .dox and plantuml in .dox. It is working but double work.
doxygen version: 1.10.0 (ebc57c6dd303a980bd19dd74b8b61c8f3f5180ca)
Example:
By adding ALIASES += CommInterface="I2C"
in doxyfile, I can use the variable by \CommInterface
in a.dox.
I can also define a variable in config.pu by !$CommInterface = "I2C"
. Then I can use the variable in the plantuml in a.dox.
@startuml
!includesub config.pu!Config
$CommInterface
@enduml
Upvotes: 1
Views: 31