[libr] Add -performv::

This commit is contained in:
Bill Currie 2020-03-10 14:29:43 +09:00
parent 6c56e93fc8
commit b517b95e45
2 changed files with 9 additions and 0 deletions

View file

@ -24,6 +24,10 @@
- (id) performSelector: (SEL)aSelector
withObject: (void *)anObject
withObject: (void *)anotherObject;
// void return does not touch the actual return value (effectively retval)
// so if the target returns a value, and the forwarding method simply returns
// (and is void), the vallue will get out to the caller
- (void) performv: (SEL) sel : (@va_list) args;
- (BOOL) respondsToSelector: (SEL)aSelector;
- (BOOL) conformsToProtocol: (Protocol *)aProtocol;

View file

@ -280,6 +280,11 @@ BOOL (id object) object_is_meta_class = #0;
return msg (self, aSelector, anObject, anotherObject);
}
- (void) performv: (SEL) sel : (@va_list) args
{
obj_msg_sendv (self, sel, args);
}
- (void) doesNotRecognizeSelector: (SEL)aSelector
{
[self error: "%s does not recognize %s",