Documentation: Difference between revisions

Objective-C
(C)
(Objective-C)
Line 376:
//...code here
}
}</lang>
 
=={{header|Objective-C}}==
Common tools include [Doxygen http://doxygen.org], [HeaderDoc http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/HeaderDoc/intro/intro.html] and [http://www.gnustep.org/resources/documentation/Developer/Base/ProgrammingManual/manual_9.html GSDoc]. The use of doxygen is much like in [[C]].
 
===HeaderDoc===
<lang Objective-C>/*!
@function add
@abstract Adds two numbers
@discussion Use add to sum two numbers.
@param a an integer.
@param b another integer.
@return the sum of a and b
*/
int add(int a, int b) {
return a + b;
}</lang>
 
Anonymous user