yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 1 | #import <UIKit/UIKit.h> |
yangsu@google.com | 688823f | 2011-08-30 19:14:13 +0000 | [diff] [blame] | 2 | #include "SkApplication.h" |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 3 | |
| 4 | extern void save_args(int argc, char *argv[]); |
| 5 | |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 6 | int main(int argc, char *argv[]) { |
yangsu@google.com | 2e20c24 | 2011-07-07 19:26:42 +0000 | [diff] [blame] | 7 | signal(SIGPIPE, SIG_IGN); |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 8 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; |
yangsu@google.com | 688823f | 2011-08-30 19:14:13 +0000 | [diff] [blame] | 9 | application_init(); |
caryclark@google.com | 5987f58 | 2012-10-02 18:33:14 +0000 | [diff] [blame] | 10 | save_args(argc, argv); |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 11 | int retVal = UIApplicationMain(argc, argv, nil, nil); |
yangsu@google.com | 688823f | 2011-08-30 19:14:13 +0000 | [diff] [blame] | 12 | application_term(); |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 13 | [pool release]; |
| 14 | return retVal; |
| 15 | } |