link_boost_test_alternative_init_macro.html 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>BOOST_TEST_ALTERNATIVE_INIT_API</title>
  5. <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="../../../index.html" title="Boost.Test">
  8. <link rel="up" href="../link_references.html" title="Build scenarios and behaviors">
  9. <link rel="prev" href="link_boost_test_module_macro.html" title="BOOST_TEST_MODULE">
  10. <link rel="next" href="link_boost_test_no_lib.html" title="BOOST_TEST_NO_LIB">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="link_boost_test_module_macro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../link_references.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="link_boost_test_no_lib.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h4 class="title">
  27. <a name="boost_test.utf_reference.link_references.link_boost_test_alternative_init_macro"></a><a class="link" href="link_boost_test_alternative_init_macro.html" title="BOOST_TEST_ALTERNATIVE_INIT_API"><code class="computeroutput"><span class="identifier">BOOST_TEST_ALTERNATIVE_INIT_API</span></code></a>
  28. </h4></div></div></div>
  29. <div class="warning"><table border="0" summary="Warning">
  30. <tr>
  31. <td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../doc/src/images/warning.png"></td>
  32. <th align="left">Warning</th>
  33. </tr>
  34. <tr><td align="left" valign="top"><p>
  35. This macro should be defined before any include directive to the <span class="emphasis"><em>Unit
  36. Test Framework</em></span> headers and is mutually exclusive with the
  37. <a class="link" href="link_boost_test_module_macro.html" title="BOOST_TEST_MODULE"><code class="computeroutput"><span class="identifier">BOOST_TEST_MODULE</span></code></a> macro.
  38. </p></td></tr>
  39. </table></div>
  40. <p>
  41. In case of custom initialization of the test module entry point, this macro
  42. indicates the <span class="emphasis"><em>Unit Test Framework</em></span> to use the new API.
  43. The differences between the new and old APIs are described in <a class="link" href="../../adv_scenarios/obsolete_init_func.html" title="The obsolete initialization function">this
  44. section</a>.
  45. </p>
  46. <p>
  47. The way to customize the entry point of the test-module depends on the
  48. variant of the <span class="emphasis"><em>Unit Test Framework</em></span> in use. Several
  49. sections in the documentation are devoted to this:
  50. </p>
  51. <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
  52. <li class="listitem">
  53. <a class="link" href="../../adv_scenarios/single_header_customizations/entry_point.html" title="Customizing the module's entry point">this
  54. section</a> for single header variant,
  55. </li>
  56. <li class="listitem">
  57. <a class="link" href="../../adv_scenarios/static_lib_customizations/init_func.html" title="Customizing the module's initialization function">this
  58. section</a> for static link variant,
  59. </li>
  60. <li class="listitem">
  61. <a class="link" href="../../adv_scenarios/shared_lib_customizations/init_func.html" title="Customizing the module's initialization function">this
  62. section</a> for shared link variant
  63. </li>
  64. </ul></div>
  65. </div>
  66. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  67. <td align="left"></td>
  68. <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2019 Boost.Test
  69. contributors<p>
  70. Distributed under the Boost Software License, Version 1.0. (See accompanying
  71. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  72. </p>
  73. </div></td>
  74. </tr></table>
  75. <hr>
  76. <div class="spirit-nav">
  77. <a accesskey="p" href="link_boost_test_module_macro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../link_references.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="link_boost_test_no_lib.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
  78. </div>
  79. </body>
  80. </html>