ObjFW  Check-in [9b9b00c5d9]

Overview
Comment:exception.m: Handle class name @id.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9b9b00c5d9b743203cc3f32be6a1d20b62d222fe37c7419e81b11d081c1e85f8
User & Date: js on 2013-11-22 23:23:05
Other Links: manifest | tags
Context
2013-11-22
23:24
runtime: Add support for non-fragile ivars. check-in: 3780f1462e user: js tags: trunk
23:23
exception.m: Handle class name @id. check-in: 9b9b00c5d9 user: js tags: trunk
19:27
of_asprintf: Add %C format specifier. check-in: e803913a9d user: js tags: trunk
Changes

Modified src/runtime/exception.m from [8bf5e39212] to [9e3f15e824].

467
468
469
470
471
472
473
474

475
476
477
478
479
480
481
			c = (uintptr_t)read_value(lsda->typestable_enc, &tmp);
			c = (uintptr_t)resolve_value(c, lsda->typestable_enc,
			    lsda->typestable - i, lsda->typestable_base);
#endif

			className = (const char*)c;

			if (className != NULL && *className != '\0')

				class = objc_getRequiredClass(className);
			else
				class = Nil;

			if (class_matches(class, e->object)) {
				*filtervalue = filter;
				return HANDLER_FOUND;







|
>







467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
			c = (uintptr_t)read_value(lsda->typestable_enc, &tmp);
			c = (uintptr_t)resolve_value(c, lsda->typestable_enc,
			    lsda->typestable - i, lsda->typestable_base);
#endif

			className = (const char*)c;

			if (className != NULL && *className != '\0' &&
			    strcmp(className, "@id"))
				class = objc_getRequiredClass(className);
			else
				class = Nil;

			if (class_matches(class, e->object)) {
				*filtervalue = filter;
				return HANDLER_FOUND;