}
} CYPoolCatch(NULL) return /*XXX*/ NULL; }
-static bool CYImplements(id object, Class _class, SEL selector, bool devoid) {
+static bool CYImplements(id object, Class _class, SEL selector, bool devoid = false) {
if (objc_method *method = class_getInstanceMethod(_class, selector)) {
if (!devoid)
return true;
static bool CYHasImplicitProperties(Class _class) {
// XXX: this is an evil hack to deal with NSProxy; fix elsewhere
- if (!CYImplements(_class, object_getClass(_class), @selector(cy$hasImplicitProperties), false))
+ if (!CYImplements(_class, object_getClass(_class), @selector(cy$hasImplicitProperties)))
return true;
return [_class cy$hasImplicitProperties];
}
CYPoolTry {
// XXX: this is an evil hack to deal with NSProxy; fix elsewhere
- if (CYImplements(self, _class, @selector(cy$hasProperty:), false))
+ if (CYImplements(self, _class, @selector(cy$hasProperty:)))
if ([self cy$hasProperty:name])
return true;
} CYPoolCatch(false)
set[length + 4] = '\0';
if (SEL sel = sel_getUid(set))
- if (CYImplements(self, _class, sel, false)) {
+ if (CYImplements(self, _class, sel)) {
JSValueRef arguments[1] = {value};
CYSendMessage(pool, context, self, NULL, sel, 1, arguments, false, exception);
return true;
CYPoolTry {
// XXX: this is an evil hack to deal with NSProxy; fix elsewhere
- if (CYImplements(self, _class, @selector(cy$getPropertyNames:inContext:), false))
+ if (CYImplements(self, _class, @selector(cy$getPropertyNames:inContext:)))
[self cy$getPropertyNames:names inContext:context];
} CYPoolCatch()
}