@macro tag

This tag can be used to define a documentation macro which can be expanded using the @invoke and @sinvoke tags and @insert tag. A macro can have named arguments.

Macros which are defined in code comments are local to the current header file and can only be expanded by the @invoke and @sinvoke tags.

Syntax [link] 

@macro <macro name>
<macro content>
@end macro

@macro <macro name> [<arg1 name> <arg2 name> ...]
... @<arg1 name>@ ...
@end macro

Example [link] 

@macro bool_table true_doc false_doc
@table 2
@item Value @item Action
@c -----------------------------
@item True @item @true_doc@
@item False @item @false_doc@
@end table
@end macro

@invoke {foo() is called} {bar() is called} bool_table
Valid XHTML 1.0 StrictGenerated by diaxen on Wed Jan 27 15:46:24 2021 using MkDoc