| | 97 | |
| | 98 | === Functions === |
| | 99 | Doxygen documentation (javadoc like for C++) is placed in the source file, just above the function header. If the function is inline, place the comment there but keep it short. [[br]] |
| | 100 | When writing documentation in the source file don't make it all jam-packed to enhance readability. Here is an example to demonstrate formatting: |
| | 101 | {{{ |
| | 102 | /** |
| | 103 | @brief |
| | 104 | A brief description. |
| | 105 | More brief description. |
| | 106 | |
| | 107 | Details follow here. |
| | 108 | Maybe an example or something. |
| | 109 | @param param1 |
| | 110 | Parameter description for parameter named 'param1' |
| | 111 | @param param2 |
| | 112 | Parameter description for parameter named 'param2' |
| | 113 | @note |
| | 114 | Something important to remember. |
| | 115 | @author |
| | 116 | The mighty whoever |
| | 117 | */ |