Differences From Artifact [21318ded74]:
- File src/OFApplication.h — part of check-in [cc3ad3ddd3] at 2017-11-18 18:50:50 on branch trunk — Documentation: Use @brief for all properties (user: js, size: 7371) [annotate] [blame] [check-ins using]
To Artifact [b0172a54c9]:
- File
src/OFApplication.h
— part of check-in
[54b38752bb]
at
2017-11-22 01:05:29
on branch trunk
— OF_APPLICATION_DELEGATE(): Improve type checking
This is done at compile time now rather than at runtime. (user: js, size: 7418) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
27 28 29 30 31 32 33 | @class OFSandbox; @class OFString; #define OF_APPLICATION_DELEGATE(cls) \ int \ main(int argc, char *argv[]) \ { \ | | > | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | @class OFSandbox; @class OFString; #define OF_APPLICATION_DELEGATE(cls) \ int \ main(int argc, char *argv[]) \ { \ return of_application_main(&argc, &argv, \ (cls *)[[cls alloc] init]); \ } #ifdef OF_HAVE_PLEDGE # define OF_HAVE_SANDBOX #endif /*! |
︙ | ︙ | |||
253 254 255 256 257 258 259 | #endif @end #ifdef __cplusplus extern "C" { #endif extern int of_application_main(int *_Nonnull, | | | 254 255 256 257 258 259 260 261 262 263 264 265 266 | #endif @end #ifdef __cplusplus extern "C" { #endif extern int of_application_main(int *_Nonnull, char *_Nonnull *_Nonnull[_Nonnull], id <OFApplicationDelegate>); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |