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 10extern "C" { 11int ChromeMain(int argc, char** argv); 12} // extern "C" 13 14__attribute__((visibility("default"))) 15int 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} 22