I consider a Fortran API to a C code. Therefore, I have a proper documented C function execute_lua
. For this function (and more functions) I have a Fortran module
MODULE CINTERFACE
! Some definitions
CONTAINS
!> @brief Wrap the C function execute_lua
!> @param[in] state Global State
!>
!> .......
SUBROUTINE EXECUTE_LUA(STATE)
...
END SUBROUTINE
END MODULE
Now, I want to reference the Fortran EXECUTE_LUA
somewhere else, for example as See Also reference. I tried
!> @sa execute_lua
which yields a link to the C function. I tried
!> @sa EXECUTE_LUA
where no link appears. Since doxygen generates my Fortran subroutine inside the module as cinterface::execute_lua
I tried
!> @sa cinterface::execute_lua
where also no link appear.
So how does it work that I am able to reference the subroutine inside the Fortran module instead of the C one.
A complete example is given here: https://gist.github.com/grisuthedragon/01ac07ed05a865419475b7a8644b8459