Sha256: b4234f376f40932e69906761c2d2537532aa9e8878c40fc2570ac4ce47d4c62d
Contents?: true
Size: 627 Bytes
Versions: 4
Compression:
Stored size: 627 Bytes
Contents
#import <UIKit/UIKit.h> extern "C" { void rb_define_const(void *, const char *, void *); void rb_rb2oc_exc_handler(void); void rb_exit(int); void RubyMotionInit(int argc, char **argv); } int main(int argc, char **argv) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; int retval = 0; try { RubyMotionInit(argc, argv); rb_define_const([NSObject class], "RUBYMOTION_ENV", @"development"); retval = UIApplicationMain(argc, argv, nil, @"AppDelegate"); rb_exit(retval); } catch (...) { rb_rb2oc_exc_handler(); } [pool release]; return retval; }
Version data entries
4 entries across 4 versions & 1 rubygems