mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-10-29 05:40:16 -04:00 
			
		
		
		
	doc: Create \comment alias for C-style comments
Since /* */ do not nest, documentation is forced to either use C++ style
// comments or some other foreign notation. This commit provides an alias
that allows C-style comments to be introduced in code blocks that support
aliases.
It should be noted that this macro will not work within \code blocks, as
Doxygen commands are ignored there. Instead, Doxygen's fenced code
blocks (created via ~~~) must be used for proper output. To demonstrate:
~~~
struct example_node {
        int id;
        \comment{Other members ...}
};
~~~
will roughly yield the following HTML (excluding syntax highlighting):
<pre>
struct example_node {
        int id;
        /* Other members ... */
};
</pre>
			
			
This commit is contained in:
		
							parent
							
								
									2e3af5e5d7
								
							
						
					
					
						commit
						217909c18d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -193,7 +193,7 @@ TAB_SIZE               = 8 | ||||||
| # will result in a user-defined paragraph with heading "Side Effects:". | # will result in a user-defined paragraph with heading "Side Effects:". | ||||||
| # You can put \n's in the value part of an alias to insert newlines. | # You can put \n's in the value part of an alias to insert newlines. | ||||||
| 
 | 
 | ||||||
| ALIASES                = | ALIASES                += comment{1}="/* \1 *<!-- -->/" | ||||||
| 
 | 
 | ||||||
| # This tag can be used to specify a number of word-keyword mappings (TCL only). | # This tag can be used to specify a number of word-keyword mappings (TCL only). | ||||||
| # A mapping has the form "name=value". For example adding | # A mapping has the form "name=value". For example adding | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aaron Faanes
						Aaron Faanes