Differences From Artifact [15015abb7a]:
- File
src/OFApplication.m
— part of check-in
[d7365be372]
at
2013-05-22 18:45:08
on branch trunk
— Import OFThread.h unconditionally.
It's safe to always import OFThread.h now as OFThread even offers
limited functionality when threads are unavailable. (user: js, size: 9369) [annotate] [blame] [check-ins using]
To Artifact [4f87ab0c32]:
- File src/OFApplication.m — part of check-in [54f020d139] at 2013-06-28 22:56:23 on branch trunk — PSP: Make tests terminable. (user: js, size: 9491) [annotate] [blame] [check-ins using]
︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | + + + + + | # include <windows.h> extern int _CRT_glob; extern void __wgetmainargs(int*, wchar_t***, wchar_t***, int, int*); #elif !defined(OF_IOS) extern char **environ; #endif #ifdef _PSP # include <pspkerneltypes.h> # include <psploadexec.h> #endif static OFApplication *app = nil; static void atexit_handler(void) { id <OFApplicationDelegate> delegate = [app delegate]; |
︙ | |||
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | + + + + | + (void)terminate { exit(0); } + (void)terminateWithStatus: (int)status { #ifdef _PSP sceKernelExitGame(); #else exit(status); #endif } - init { self = [super init]; @try { |
︙ |