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" |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 3 | int main(int argc, char *argv[]) { |
yangsu@google.com | 2e20c24 | 2011-07-07 19:26:42 +0000 | [diff] [blame] | 4 | signal(SIGPIPE, SIG_IGN); |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 5 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; |
yangsu@google.com | 688823f | 2011-08-30 19:14:13 +0000 | [diff] [blame^] | 6 | application_init(); |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 7 | int retVal = UIApplicationMain(argc, argv, nil, nil); |
yangsu@google.com | 688823f | 2011-08-30 19:14:13 +0000 | [diff] [blame^] | 8 | application_term(); |
yangsu@google.com | 2eff7e2 | 2011-06-24 15:57:30 +0000 | [diff] [blame] | 9 | [pool release]; |
| 10 | return retVal; |
| 11 | } |