Chris@16
|
1 // (C) Copyright Gennadiy Rozental 2001-2008.
|
Chris@16
|
2 // Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
3 // (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
4 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
5
|
Chris@16
|
6 // See http://www.boost.org/libs/test for the library home page.
|
Chris@16
|
7 //
|
Chris@16
|
8 // File : $RCSfile$
|
Chris@16
|
9 //
|
Chris@101
|
10 // Version : $Revision$
|
Chris@16
|
11 //
|
Chris@16
|
12 // Description : Entry point for the end user into the Program Execution Monitor.
|
Chris@16
|
13 // ***************************************************************************
|
Chris@16
|
14
|
Chris@16
|
15 #ifndef BOOST_PRG_EXEC_MONITOR_HPP_071894GER
|
Chris@16
|
16 #define BOOST_PRG_EXEC_MONITOR_HPP_071894GER
|
Chris@16
|
17
|
Chris@16
|
18 #include <boost/test/detail/config.hpp>
|
Chris@16
|
19
|
Chris@16
|
20 //____________________________________________________________________________//
|
Chris@16
|
21
|
Chris@16
|
22 // ************************************************************************** //
|
Chris@16
|
23 // ************** Auto Linking ************** //
|
Chris@16
|
24 // ************************************************************************** //
|
Chris@16
|
25
|
Chris@16
|
26 // Automatically link to the correct build variant where possible.
|
Chris@16
|
27 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
|
Chris@16
|
28 !defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)
|
Chris@16
|
29 # define BOOST_LIB_NAME boost_prg_exec_monitor
|
Chris@16
|
30
|
Chris@16
|
31 // If we're importing code from a dll, then tell auto_link.hpp about it:
|
Chris@16
|
32 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TEST_DYN_LINK)
|
Chris@16
|
33 # define BOOST_DYN_LINK
|
Chris@16
|
34 # endif
|
Chris@16
|
35
|
Chris@16
|
36 # include <boost/config/auto_link.hpp>
|
Chris@16
|
37
|
Chris@16
|
38 #endif // auto-linking disabled
|
Chris@16
|
39
|
Chris@16
|
40 // ************************************************************************** //
|
Chris@16
|
41 // ************** prg_exec_monitor_main ************** //
|
Chris@16
|
42 // ************************************************************************** //
|
Chris@16
|
43
|
Chris@16
|
44 namespace boost {
|
Chris@16
|
45
|
Chris@16
|
46 int BOOST_TEST_DECL prg_exec_monitor_main( int (*cpp_main)( int argc, char* argv[] ), int argc, char* argv[] );
|
Chris@16
|
47
|
Chris@16
|
48 }
|
Chris@16
|
49
|
Chris@16
|
50 #if defined(BOOST_TEST_DYN_LINK) && !defined(BOOST_TEST_NO_MAIN)
|
Chris@16
|
51
|
Chris@16
|
52 // ************************************************************************** //
|
Chris@16
|
53 // ************** main function for tests using dll ************** //
|
Chris@16
|
54 // ************************************************************************** //
|
Chris@16
|
55
|
Chris@16
|
56 int cpp_main( int argc, char* argv[] ); // prototype for user's cpp_main()
|
Chris@16
|
57
|
Chris@16
|
58 int BOOST_TEST_CALL_DECL
|
Chris@16
|
59 main( int argc, char* argv[] )
|
Chris@16
|
60 {
|
Chris@16
|
61 return ::boost::prg_exec_monitor_main( &cpp_main, argc, argv );
|
Chris@16
|
62 }
|
Chris@16
|
63
|
Chris@16
|
64 //____________________________________________________________________________//
|
Chris@16
|
65
|
Chris@16
|
66 #endif // BOOST_TEST_DYN_LINK && !BOOST_TEST_NO_MAIN
|
Chris@16
|
67
|
Chris@16
|
68 #endif // BOOST_PRG_EXEC_MONITOR_HPP_071894GER
|