Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / app / chrome_exe_main_mac.cc
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // The entry point for all Mac Chromium processes, including the outer app
6 // bundle (browser) and helper app (renderer, plugin, and friends).
7
8 #include <stdlib.h>
9
10 extern "C" {
11 int ChromeMain(int argc, char** argv);
12 }  // extern "C"
13
14 __attribute__((visibility("default")))
15 int main(int argc, char* argv[]) {
16   int rv = ChromeMain(argc, argv);
17
18   // exit, don't return from main, to avoid the apparent removal of main from
19   // stack backtraces under tail call optimization.
20   exit(rv);
21 }