ObjFW  Diff

Differences From Artifact [8b89a99f6e]:

To Artifact [e942c20c56]:


154
155
156
157
158
159
160

161

162
163
164
165
166
167
168
169

170

171
172
173
174
175
176
177
+ (OFDictionary*)environment
{
	return [app environment];
}

+ (void)terminate
{

	exit(0);

}

+ (void)terminateWithStatus: (int)status
{
#ifdef OF_PSP
	sceKernelExitGame();
	abort();	/* sceKernelExitGame() is not marked noreturn */
#else

	exit(status);

#endif
}

- init
{
	self = [super init];








>
|
>




|
|
<

>
|
>







154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169

170
171
172
173
174
175
176
177
178
179
180
+ (OFDictionary*)environment
{
	return [app environment];
}

+ (void)terminate
{
	[self terminateWithStatus: EXIT_SUCCESS];

	OF_UNREACHABLE
}

+ (void)terminateWithStatus: (int)status
{
#ifndef OF_PSP
	exit(status);

#else
	sceKernelExitGame();

	OF_UNREACHABLE
#endif
}

- init
{
	self = [super init];

472
473
474
475
476
477
478

479

480
481
482
483

484

485
486
	objc_autoreleasePoolPop(pool);

	[runLoop run];
}

- (void)terminate
{

	exit(EXIT_SUCCESS);

}

- (void)terminateWithStatus: (int)status
{

	exit(status);

}
@end







>
|
>




>
|
>


475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
	objc_autoreleasePoolPop(pool);

	[runLoop run];
}

- (void)terminate
{
	[[self class] terminate];

	OF_UNREACHABLE
}

- (void)terminateWithStatus: (int)status
{
	[[self class] terminateWithStatus: status];

	OF_UNREACHABLE
}
@end