diff options
author | kan <kan@FreeBSD.org> | 2003-07-11 03:42:15 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-07-11 03:42:15 +0000 |
commit | bb754981e6f83bc1f224dc4b7f478d80024e6c9f (patch) | |
tree | b912048c8df69db39da9eded7043642b2854fa0d /contrib/libobjc/objc/objc.h | |
parent | c7bbbdd036d3dd7ae253fb13c9994215af06f073 (diff) | |
download | FreeBSD-src-bb754981e6f83bc1f224dc4b7f478d80024e6c9f.zip FreeBSD-src-bb754981e6f83bc1f224dc4b7f478d80024e6c9f.tar.gz |
Gcc 3.3.1-pre 2003-07-11 Objective C support bits.
Diffstat (limited to 'contrib/libobjc/objc/objc.h')
-rw-r--r-- | contrib/libobjc/objc/objc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/libobjc/objc/objc.h b/contrib/libobjc/objc/objc.h index 79b2519..699542c 100644 --- a/contrib/libobjc/objc/objc.h +++ b/contrib/libobjc/objc/objc.h @@ -73,7 +73,14 @@ typedef struct objc_object { /* ** Definition of method type. When retrieving the implementation of a -** method, this is type of the pointer returned +** method, this is type of the pointer returned. The idea of the +** definition of IMP is to represent a 'pointer to a general function +** taking an id, a SEL, followed by other unspecified arguments'. You +** must always cast an IMP to a pointer to a function taking the +** appropriate, specific types for that function, before calling it - +** to make sure the appropriate arguments are passed to it. The code +** generated by the compiler to perform method calls automatically +** does this cast inside method calls. */ typedef id (*IMP)(id, SEL, ...); |