diff options
Diffstat (limited to 'mojo/shell/public/cpp/lib/init_commandline.cc')
-rw-r--r-- | mojo/shell/public/cpp/lib/init_commandline.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mojo/shell/public/cpp/lib/init_commandline.cc b/mojo/shell/public/cpp/lib/init_commandline.cc new file mode 100644 index 0000000..a61797b --- /dev/null +++ b/mojo/shell/public/cpp/lib/init_commandline.cc @@ -0,0 +1,22 @@ +// Copyright 2014 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. + +#include "build/build_config.h" + +namespace mojo { + +extern int g_application_runner_argc; +extern const char* const* g_application_runner_argv; + +} + +#if !defined(OS_WIN) +extern "C" { +__attribute__((visibility("default"))) void InitCommandLineArgs( + int argc, const char* const* argv) { + mojo::g_application_runner_argc = argc; + mojo::g_application_runner_argv = argv; +} +} +#endif |