//
//  main.m
//  Cylinder
//
//  Created by Keith Bauer on 12/10/08.
//  Copyright (c) 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <RubyCocoa/RBRuntime.h>

int main(int argc, const char *argv[])
{
    return RBApplicationMain("rb_main.rb", argc, argv);
}

// force this symbol to be accessible by dlsym
__attribute__((visibility("default")))
// hack to work around bug in RubyCocoa bridging of this ObjC method
id GraphicsContextFromCGContext(CGContextRef ctx, BOOL flipped)
{
    return [NSGraphicsContext graphicsContextWithGraphicsPort:ctx flipped:flipped];
}
