mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Update for new runtime api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32241 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c7eeb1bb08
commit
0cb48d516b
7 changed files with 46 additions and 29 deletions
|
@ -433,13 +433,14 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
|
|||
{
|
||||
/* If anObject was an instance, c is it's class.
|
||||
* If anObject was a class, c is its metaclass.
|
||||
* Either way, get_imp() should get the appropriate pointer.
|
||||
* Either way, we should get the appropriate pointer.
|
||||
* If anObject is a proxy to something,
|
||||
* the +instanceMethodForSelector: and -methodForSelector:
|
||||
* methods may not exist, but get_imp() will return the
|
||||
* methods may not exist, but this will return the
|
||||
* address of the forwarding method if necessary.
|
||||
*/
|
||||
imps[hash] = get_imp(c, @selector(release));
|
||||
imps[hash]
|
||||
= class_getMethodImplementation(c, @selector(release));
|
||||
classes[hash] = c;
|
||||
}
|
||||
(imps[hash])(anObject, @selector(release));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue