mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Use GSSelectorTypesMatch() for types comparison where we are interested in types
but not qualifiers and stack layout information. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35304 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be9d4f89fe
commit
1c8f36b122
7 changed files with 47 additions and 17 deletions
|
@ -98,13 +98,15 @@
|
|||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"<%s -%@> not declared",
|
||||
protocol_getName(_myProtocol), NSStringFromSelector([anInvocation selector])];
|
||||
protocol_getName(_myProtocol),
|
||||
NSStringFromSelector([anInvocation selector])];
|
||||
}
|
||||
else
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"<%s +%@> not declared",
|
||||
protocol_getName(_myProtocol), NSStringFromSelector([anInvocation selector])];
|
||||
protocol_getName(_myProtocol),
|
||||
NSStringFromSelector([anInvocation selector])];
|
||||
}
|
||||
}
|
||||
[anInvocation invokeWithTarget: _myTarget];
|
||||
|
@ -114,7 +116,7 @@
|
|||
* returned value with the protocol checker.
|
||||
*/
|
||||
type = [[anInvocation methodSignature] methodReturnType];
|
||||
if (strcmp(type, @encode(id)) == 0)
|
||||
if (GSSelectorTypesMatch(type, @encode(id)))
|
||||
{
|
||||
id buf;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue