diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-08-06 09:49:30 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-08-06 09:49:30 +0000 |
commit | 3f54203792c34fc3381c1bcd4fd77ef62c0c377f (patch) | |
tree | 1e7b3a8bb4d030cf3d96c14215b779ba1938243f /libobjc/objc | |
parent | cd7c6bc5bfb1304b12d36972f4e2037555fd2d89 (diff) | |
download | gcc-3f54203792c34fc3381c1bcd4fd77ef62c0c377f.zip gcc-3f54203792c34fc3381c1bcd4fd77ef62c0c377f.tar.gz gcc-3f54203792c34fc3381c1bcd4fd77ef62c0c377f.tar.bz2 |
In libobjc/: 2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/49882
* class.c (class_getSuperclass): Return the superclass if the
class is in construction.
* objc/runtime.h (class_getSuperclass): Updated documentation.
In gcc/testsuite/:
2011-08-06 Nicola Pero <nicola.pero@meta-innovation.com>
PR libobjc/49882
* objc.dg/gnu-api-2-class.m (main): Test class_getSuperclass()
with classes that are in construction.
From-SVN: r177505
Diffstat (limited to 'libobjc/objc')
-rw-r--r-- | libobjc/objc/runtime.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libobjc/objc/runtime.h b/libobjc/objc/runtime.h index ab9926e..c649e23 100644 --- a/libobjc/objc/runtime.h +++ b/libobjc/objc/runtime.h @@ -497,10 +497,10 @@ objc_EXPORT const char * class_getName (Class class_); objc_EXPORT BOOL class_isMetaClass (Class class_); /* Return the superclass of 'class_'. If 'class_' is Nil, or it is a - root class, return Nil. If 'class_' is a class being constructed, - that is, a class returned by objc_allocateClassPair() but before it - has been registered with the runtime using - objc_registerClassPair(), return Nil. */ + root class, return Nil. This function also works if 'class_' is a + class being constructed, that is, a class returned by + objc_allocateClassPair() but before it has been registered with the + runtime using objc_registerClassPair(). */ objc_EXPORT Class class_getSuperclass (Class class_); /* Return the 'version' number of the class, which is an integer that |