protot/3rdparty/imgui/examples/example_apple_metal/Shared/main.m

24 lines
389 B
Matlab
Raw Permalink Normal View History

2018-12-15 09:50:47 +01:00
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
2018-02-12 21:35:44 +01:00
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
2018-12-15 09:50:47 +01:00
#else
#import <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}
#endif