Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / mojo / application / public / cpp / lib / init_commandline.cc
bloba61797b4fccf782f7830d5b01b3a2e35cf25cc3a
1 // Copyright 2014 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.
5 #include "build/build_config.h"
7 namespace mojo {
9 extern int g_application_runner_argc;
10 extern const char* const* g_application_runner_argv;
14 #if !defined(OS_WIN)
15 extern "C" {
16 __attribute__((visibility("default"))) void InitCommandLineArgs(
17 int argc, const char* const* argv) {
18 mojo::g_application_runner_argc = argc;
19 mojo::g_application_runner_argv = argv;
22 #endif