ObjFW  Check-in [1d41fff819]

Overview
Comment:macros.h: Reduce OF_INVALID_INIT_METHOD code size
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1d41fff819b60cc26bba2a1b806a3afd681944eeb19dae9f5df0556e26224fbd
User & Date: js on 2017-11-13 23:06:14
Other Links: manifest | tags
Context
2017-11-14
00:23
OFURL: Always verify the URL-encoded versions check-in: b2ee854268 user: js tags: trunk
2017-11-13
23:06
macros.h: Reduce OF_INVALID_INIT_METHOD code size check-in: 1d41fff819 user: js tags: trunk
23:02
OFCharacterSet_*: Make init unavailable check-in: 36607ff68e user: js tags: trunk
Changes

Modified src/macros.h from [58ba402fca] to [63c7ed2d2c].

361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
			    __LINE__);					\
			abort();					\
		}							\
	} while (0)

#define OF_UNRECOGNIZED_SELECTOR of_method_not_found(self, _cmd);
#if __has_feature(objc_arc)
# define OF_INVALID_INIT_METHOD			\
	[self doesNotRecognizeSelector: _cmd];	\
						\
	abort();
#else
# define OF_INVALID_INIT_METHOD				\
	@try {						\
		[self doesNotRecognizeSelector: _cmd];	\
	} @catch (id e) {				\
		[self release];				\
		@throw e;				\
	}						\
							\
	abort();
#endif







|
<
<
<



|







361
362
363
364
365
366
367
368



369
370
371
372
373
374
375
376
377
378
379
			    __LINE__);					\
			abort();					\
		}							\
	} while (0)

#define OF_UNRECOGNIZED_SELECTOR of_method_not_found(self, _cmd);
#if __has_feature(objc_arc)
# define OF_INVALID_INIT_METHOD of_method_not_found(self, _cmd);



#else
# define OF_INVALID_INIT_METHOD				\
	@try {						\
		of_method_not_found(self, _cmd);	\
	} @catch (id e) {				\
		[self release];				\
		@throw e;				\
	}						\
							\
	abort();
#endif