Skip to content

Option to show macro's value #236

@amykyta3

Description

@amykyta3

Thanks for the great plugin!
Not sure if this is already supported or not, but it could be useful in some situations to also show the macro's value in the rendered documentation.

Something like:

.. c:automacro:: MY_MACRO
    :file: example.h
    :show_value: True

I'm in a situation where I need to document a cross-language API, and there are several constants defined in macros that would be useful to propagate to the docs. For now, I'm working around by duplicating the macro value in the docstring comment.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions