summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_exe_main_mac.cc
blob: 83a5c7c6c8d511cdfd6fee838ad43594208719b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// The entry point for all Mac Chromium processes, including the outer app
// bundle (browser) and helper app (renderer, plugin, and friends).

#include <stdlib.h>

extern "C" {
int ChromeMain(int argc, char** argv);
}  // extern "C"

__attribute__((visibility("default")))
int main(int argc, char* argv[]) {
  int rv = ChromeMain(argc, argv);

  // exit, don't return from main, to avoid the apparent removal of main from
  // stack backtraces under tail call optimization.
  exit(rv);
}