return string;
}
-#ifdef __APPLE__
+#ifdef __clang__
JSStringRef CYCopyJSString(JSContextRef context, NSString *value) {
return JSStringCreateWithCFString(reinterpret_cast<CFStringRef>(value));
}
return NULL;
// XXX: this definition scares me; is anyone using this?!
NSString *string([value description]);
-#ifdef __APPLE__
+#ifdef __clang__
return CYCopyJSString(context, string);
#else
CYPool pool;
[json appendString:@"@["];
bool comma(false);
-#ifdef __APPLE__
+#ifdef __clang__
for (id object in self) {
#else
for (size_t index(0), count([self count]); index != count; ++index) {
[json appendString:@"@{"];
bool comma(false);
-#ifdef __APPLE__
+#ifdef __clang__
for (NSObject *key in self) {
#else
NSEnumerator *keys([self keyEnumerator]);
- (void) cy$getPropertyNames:(JSPropertyNameAccumulatorRef)names inContext:(JSContextRef)context {
[super cy$getPropertyNames:names inContext:context];
-#ifdef __APPLE__
+#ifdef __clang__
for (NSObject *key in self) {
#else
NSEnumerator *keys([self keyEnumerator]);
CYGarbageCollect(context);
CYPool pool;
- Class _class(CYCastNSObject(&pool, context, arguments[0]));
+ id _class(CYCastNSObject(&pool, context, arguments[0]));
vm_address_t *zones(NULL);
unsigned size(0);