blob: 8cb4d3a18980f1ae1305b2a9e9dfa2367cc8d2fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// objective: test the \interface and \category command
// check: category_integer_07_arithmetic_08.xml
// check: interface_integer.xml
# import <objc/Object.h>
@interface Integer : Object {
/** data member */
int integer;
}
/** getter */
- (int) integer;
/** setter */
- (id) integer: (int) _integer;
@end
@interface Integer (Arithmetic)
/** add operation */
- (id) add: (Integer *) addend;
/** substract operation */
- (id) sub: (Integer *) subtrahend;
@end
/** \interface Integer
* An interface
*/
/** \category Integer(Arithmetic)
* A category
*/
|