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