Differences From Artifact [fb20a2022a]:
- File src/runtime/class.m — part of check-in [3b58706d32] at 2012-11-30 15:40:49 on branch trunk — Remove inline that lead to a missing symbol. (user: js, size: 11768) [annotate] [blame] [check-ins using]
To Artifact [72c72347b1]:
- File
src/runtime/class.m
— part of check-in
[120caad331]
at
2012-11-30 16:09:39
on branch trunk
— Make runtime API more similar to Apple's.
This makes it easier to use runtime functions in portable code. (user: js, size: 11993) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
350 351 352 353 354 355 356 | if (load_queue == NULL) OBJC_ERROR("Not enough memory for load queue!"); } } } | < > | | 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | if (load_queue == NULL) OBJC_ERROR("Not enough memory for load queue!"); } } } id objc_lookUpClass(const char *name) { Class cls = objc_classname_to_class(name); if (cls == NULL) return Nil; if (cls->info & OBJC_CLASS_INFO_SETUP) |
︙ | ︙ | |||
373 374 375 376 377 378 379 | if (!(cls->info & OBJC_CLASS_INFO_SETUP)) return Nil; return cls; } | > > > > > | > | | > > > > > > > > > > > > | 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | if (!(cls->info & OBJC_CLASS_INFO_SETUP)) return Nil; return cls; } id objc_getClass(const char *name) { return objc_lookUpClass(name); } id objc_getRequiredClass(const char *name) { Class cls; if ((cls = objc_getClass(name)) == Nil) OBJC_ERROR("Class %s not found!", name); return cls; } Class objc_lookup_class(const char *name) { return objc_getClass(name); } Class objc_get_class(const char *name) { return objc_getRequiredClass(name); } const char* class_getName(Class cls) { return cls->name; } |
︙ | ︙ |