mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add void return
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
87e43bbb0e
commit
82e1253dab
1 changed files with 10 additions and 0 deletions
|
@ -1537,6 +1537,16 @@ GSGetValue(NSObject *self, NSString *key, SEL sel,
|
|||
}
|
||||
break;
|
||||
|
||||
case _C_VOID:
|
||||
{
|
||||
void (*imp)(id, SEL) =
|
||||
(void (*)(id, SEL))[self methodForSelector: sel];
|
||||
|
||||
(*imp)(self, sel);
|
||||
}
|
||||
val = nil;
|
||||
break;
|
||||
|
||||
default:
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"key-value get method has unsupported type"];
|
||||
|
|
Loading…
Reference in a new issue