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:
fedor 2002-01-07 15:34:20 +00:00
parent 87e43bbb0e
commit 82e1253dab

View file

@ -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"];