mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 10:16:01 +08:00
18 lines
431 B
Plaintext
18 lines
431 B
Plaintext
|
|
#import <UIKit/UIKit.h>
|
|
#import <stdexcept>
|
|
#import <iostream>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
|
int retVal = 0;
|
|
try {
|
|
retVal = UIApplicationMain(argc, argv, nil, @"AppController");
|
|
} catch (const std::exception &ex) {
|
|
std::cout << "Unhandled exception:";
|
|
std::cout << ex.what();
|
|
}
|
|
[pool release];
|
|
return retVal;
|
|
}
|