aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/mac/skia_mac.mm
blob: 3bb15b4e864aa277ef28befab71d315da5e3b76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

/*
 * Copyright 2011 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#import <Cocoa/Cocoa.h>
#include "SkApplication.h"
int main(int argc, char *argv[]) {
    signal(SIGPIPE, SIG_IGN);
    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    application_init();
    int retVal =  NSApplicationMain(argc, (const char **)argv);
    application_term();
    [pool release];
    return retVal;
}