summaryrefslogtreecommitdiffstats
path: root/mojo/application/public/cpp/lib/init_commandline.cc
blob: a61797b4fccf782f7830d5b01b3a2e35cf25cc3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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