diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-04 00:33:24 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-04 00:33:24 +0000 |
commit | f8ce465c025d457778f8376eca12d94e723965bb (patch) | |
tree | c7d292f7f6b44b9215209c258605ce09f80bd785 /chrome/app/chrome_exe_main_mac.mm | |
parent | 1f59edcb6592e1586822c4c9e6aea31e1fb1071c (diff) | |
download | chromium_src-f8ce465c025d457778f8376eca12d94e723965bb.zip chromium_src-f8ce465c025d457778f8376eca12d94e723965bb.tar.gz chromium_src-f8ce465c025d457778f8376eca12d94e723965bb.tar.bz2 |
chrome_exe_main: name os-specific files according to naming pattern
These files probably just predate us having a _win suffix on Windows-specific
code.
BUG=18504
TEST=compiles
Review URL: http://codereview.chromium.org/4451001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main_mac.mm')
-rw-r--r-- | chrome/app/chrome_exe_main_mac.mm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/app/chrome_exe_main_mac.mm b/chrome/app/chrome_exe_main_mac.mm new file mode 100644 index 0000000..4f2e474 --- /dev/null +++ b/chrome/app/chrome_exe_main_mac.mm @@ -0,0 +1,21 @@ +// Copyright (c) 2010 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); +} + +__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); +} |