aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/mac/skia_mac.mm
blob: c20a402c890bd97c38a6c41d792ccac8794e95b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

/*
 * 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);
    
#if 0
    // we don't expect NSApplicationMain to return. See our applicationShouldTerminate handler.
    application_term();
    [pool release];
#endif
    return retVal;
}