-
-
Notifications
You must be signed in to change notification settings - Fork 542
Expand file tree
/
Copy pathhpx_main_argc_argv.cpp
More file actions
20 lines (18 loc) · 774 Bytes
/
hpx_main_argc_argv.cpp
File metadata and controls
20 lines (18 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2007-2013 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/hpx_finalize.hpp>
#include <hpx/hpx_init.hpp>
///////////////////////////////////////////////////////////////////////////////
// Forwarding of hpx_main, if necessary. This has to be in a separate
// translation unit to ensure the linker can pick or ignore this function,
// depending on whether the main executable defines this symbol or not.
int hpx_main(int argc, char* argv[])
{
// Invoke hpx_startup::user_main
int const result = hpx_startup::user_main(argc, argv);
hpx::finalize();
return result;
}