179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
defined(OF_NINTENDO_SWITCH)
@try {
return OFApplicationMain(&argc, &argv,
[[TestsAppDelegate alloc] init]);
} @catch (id e) {
OFString *string = [OFString stringWithFormat:
@"\nRuntime error: Unhandled exception:\n%@\n", e];
OFString *backtrace = [OFString stringWithFormat:
@"\nBacktrace:\n %@\n\n",
[[e backtrace] componentsJoinedByString: @"\n "]];
[OFStdOut setForegroundColor: [OFColor red]];
[OFStdOut writeString: string];
[OFStdOut writeString: backtrace];
# if defined(OF_WII)
[OFStdOut reset];
[OFStdOut writeString: @"Press home button to exit!"];
for (;;) {
WPAD_ScanPads();
|
<
<
<
>
>
|
>
>
>
|
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
defined(OF_NINTENDO_SWITCH)
@try {
return OFApplicationMain(&argc, &argv,
[[TestsAppDelegate alloc] init]);
} @catch (id e) {
OFString *string = [OFString stringWithFormat:
@"\nRuntime error: Unhandled exception:\n%@\n", e];
[OFStdOut setForegroundColor: [OFColor red]];
[OFStdOut writeString: string];
if ([e stackTraceAddresses] != nil)
[OFStdOut writeString: @"\nStack trace:\n"];
for (OFValue *address in [e stackTraceAddresses])
[OFStdOut writeFormat: @" %p\n", address.pointerValue];
# if defined(OF_WII)
[OFStdOut reset];
[OFStdOut writeString: @"Press home button to exit!"];
for (;;) {
WPAD_ScanPads();
|
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
|
[self UNIXStreamSocketTests];
# endif
[self kernelEventObserverTests];
#endif
#ifdef OF_HAVE_THREADS
[self threadTests];
#endif
[self URLTests];
#if defined(OF_HAVE_SOCKETS) && defined(OF_HAVE_THREADS)
[self HTTPClientTests];
#endif
#ifdef OF_HAVE_SOCKETS
[self HTTPCookieTests];
[self HTTPCookieManagerTests];
#endif
|
|
|
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
|
[self UNIXStreamSocketTests];
# endif
[self kernelEventObserverTests];
#endif
#ifdef OF_HAVE_THREADS
[self threadTests];
#endif
[self URITests];
#if defined(OF_HAVE_SOCKETS) && defined(OF_HAVE_THREADS)
[self HTTPClientTests];
#endif
#ifdef OF_HAVE_SOCKETS
[self HTTPCookieTests];
[self HTTPCookieManagerTests];
#endif
|