ObjFW  Diff

Differences From Artifact [4b59534eae]:

  • File src/foundation-compat.m — part of check-in [44f45c2e35] at 2017-01-09 17:36:36 on branch trunk — Update copyright Forgot to add 2017, even though I already did quite some changes in 2017. (user: js size: 2805)

To Artifact [b70a21b331]:

  • File src/foundation-compat.m — part of check-in [d07c56a8bb] at 2017-04-02 01:06:35 on branch trunk — Add OF_CONSTRUCTOR() / OF_DESTRUCTOR() (user: js size: 2766)

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
autorelease(id self, SEL _cmd)
{
	[OFAutoreleasePool addObject: self];

	return self;
}

static void __attribute__((__constructor__))
init(void)
{
	Class NSAutoreleasePool = objc_getClass("NSAutoreleasePool");
	Class NSObject = objc_getClass("NSObject");
	Method allocMethod;
	Method addObjectMethod;
	Method autoreleaseMethod;








|
<







51
52
53
54
55
56
57
58

59
60
61
62
63
64
65
autorelease(id self, SEL _cmd)
{
	[OFAutoreleasePool addObject: self];

	return self;
}

OF_CONSTRUCTOR()

{
	Class NSAutoreleasePool = objc_getClass("NSAutoreleasePool");
	Class NSObject = objc_getClass("NSObject");
	Method allocMethod;
	Method addObjectMethod;
	Method autoreleaseMethod;