apple2ix/Apple2Mac/Apple2Mac/main.m

37 lines
653 B
Mathematica
Raw Normal View History

/*
* Apple // emulator for *ix
*
* This software package is subject to the GNU General Public License
* version 3 or later (your choice) as published by the Free Software
* Foundation.
*
* Copyright 2014, 2015 Aaron Culliney
*
*/
2014-06-22 04:38:05 +00:00
2014-10-08 04:59:21 +00:00
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
2014-06-22 04:38:05 +00:00
#import <Cocoa/Cocoa.h>
#endif
2014-06-22 04:38:05 +00:00
extern int argc;
extern const char **argv;
int main(int argc_, const char *argv_[])
{
int retVal = 1;
2014-06-22 04:38:05 +00:00
argc = argc_;
argv = argv_;
2014-10-08 04:59:21 +00:00
#if TARGET_OS_IPHONE
@autoreleasepool {
retVal = UIApplicationMain(argc, argv, nil, nil);
}
#else
retVal = NSApplicationMain(argc, argv);
#endif
return retVal;
2014-06-22 04:38:05 +00:00
}