opengl-playground/imgui-submodule/imgui/examples/example_apple_metal/Shared/main.m

23 lines
388 B
Mathematica
Raw Permalink Normal View History

2020-03-21 22:38:10 +01:00
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
#else
#import <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}
#endif