Skip to content

Commit 5cd5138

Browse files
committed
separate overloads.hpp
BOOST_PYTHON_MODULE_INIT -> BOOST_PYTHON_MODULE [SVN r15609]
1 parent c6cba55 commit 5cd5138

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+130
-229
lines changed

doc/v2/args.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h2><a name="examples"></a>Example</h2>
8787

8888
int f(int x, int y, int z);
8989

90-
BOOST_PYTHON_MODULE_INIT(xxx)
90+
BOOST_PYTHON_MODULE(xxx)
9191
{
9292
def("f", f, args("x", "y", "z"));
9393
}

doc/v2/call_method.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h2><a name="examples"></a>Example(s)</h2>
8585

8686
<h3>C++ Module Definition</h3>
8787
<pre>
88-
#include &lt;boost/python/module_init.hpp&gt;
88+
#include &lt;boost/python/module.hpp&gt;
8989
#include &lt;boost/python/class.hpp&gt;
9090
#include &lt;boost/utility.hpp&gt;
9191
#include &lt;cstring&gt;
@@ -119,7 +119,7 @@ <h3>C++ Module Definition</h3>
119119
};
120120

121121
using namespace boost::python;
122-
BOOST_PYTHON_MODULE_INIT(my_module)
122+
BOOST_PYTHON_MODULE(my_module)
123123
{
124124
def("is_base", is_base);
125125

doc/v2/copy_const_reference.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h2><a name="examples"></a>Example</h2>
9898

9999
<h3>C++ Module Definition</h3>
100100
<pre>
101-
#include &lt;boost/python/module_init.hpp&gt;
101+
#include &lt;boost/python/module.hpp&gt;
102102
#include &lt;boost/python/class.hpp&gt;
103103
#include &lt;boost/python/copy_const_reference.hpp&gt;
104104
#include &lt;boost/python/return_value_policy.hpp&gt;
@@ -115,7 +115,7 @@ <h3>C++ Module Definition</h3>
115115

116116
// Wrapper code
117117
using namespace boost::python;
118-
BOOST_PYTHON_MODULE_INIT(my_module)
118+
BOOST_PYTHON_MODULE(my_module)
119119
{
120120
class_&lt;Bar&gt;("Bar");
121121

doc/v2/copy_non_const_reference.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h2><a name="examples"></a>Example</h2>
9999

100100
<p>C++ code:</p>
101101
<pre>
102-
#include &lt;boost/python/module_init.hpp&gt;
102+
#include &lt;boost/python/module.hpp&gt;
103103
#include &lt;boost/python/class.hpp&gt;
104104
#include &lt;boost/python/copy_non_const_reference.hpp&gt;
105105
#include &lt;boost/python/return_value_policy.hpp&gt;
@@ -116,7 +116,7 @@ <h2><a name="examples"></a>Example</h2>
116116

117117
// Wrapper code
118118
using namespace boost::python;
119-
BOOST_PYTHON_MODULE_INIT(my_module)
119+
BOOST_PYTHON_MODULE(my_module)
120120
{
121121
class_&lt;Bar&gt;("Bar");
122122

doc/v2/data_members.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h2><a name="examples"></a>Example</h2>
115115
member as functions:</p>
116116
<pre>
117117
#include &lt;boost/python/data_members.hpp&gt;
118-
#include &lt;boost/python/module_init.hpp&gt;
118+
#include &lt;boost/python/module.hpp&gt;
119119
#include &lt;boost/python/class.hpp&gt;
120120

121121
struct X

doc/v2/exception_translator.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h2><a name="functions"></a>Functions</h2>
9797

9898
<h2><a name="examples"></a>Example</h2>
9999
<pre>
100-
#include &lt;boost/python/module_init.hpp&gt;
100+
#include &lt;boost/python/module.hpp&gt;
101101
#include &lt;boost/python/def.hpp&gt;
102102
#include &lt;boost/python/exception_translator.hpp&gt;
103103
#include &lt;exception&gt;
@@ -120,7 +120,7 @@ <h2><a name="examples"></a>Example</h2>
120120
...
121121
}
122122

123-
BOOST_PYTHON_MODULE_INIT(exception_translator_ext)
123+
BOOST_PYTHON_MODULE(exception_translator_ext)
124124
{
125125
using namespace boost::python;
126126
register_exception_translator&lt;my_exception&gt;(&amp;translate);

doc/v2/extract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ <h2><a name="examples"></a>Examples</h2>
204204
int v;
205205
};
206206

207-
BOOST_PYTHON_MODULE_INIT(extract_ext)
207+
BOOST_PYTHON_MODULE(extract_ext)
208208
{
209209
object x_class(
210210
class_&lt;X&gt;(&quot;X&quot;, init&lt;int&gt;())

doc/v2/has_back_reference.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h2><a name="examples"></a>Example</h2>
111111
<h3>C++ module definition</h3>
112112
<pre>
113113
#include &lt;boost/python/class.hpp&gt;
114-
#include &lt;boost/python/module_init.hpp&gt;
114+
#include &lt;boost/python/module.hpp&gt;
115115
#include &lt;boost/python/has_back_reference.hpp&gt;
116116
#include &lt;boost/python/handle.hpp&gt;
117117
#include &lt;boost/shared_ptr.hpp&gt;
@@ -153,7 +153,7 @@ <h3>C++ module definition</h3>
153153

154154
boost::shared_ptr&lt;Y&gt; Y_self(boost::shared_ptr&lt;Y&gt; self) const { return self; }
155155

156-
BOOST_PYTHON_MODULE_INIT(back_references)
156+
BOOST_PYTHON_MODULE(back_references)
157157
{
158158
class_&lt;X&gt;("X")
159159
.def(init&lt;int&gt;())

doc/v2/implicit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h3>C++ module definition</h3>
103103
<pre>
104104
#include &lt;boost/python/class.hpp&gt;
105105
#include &lt;boost/python/implicit.hpp&gt;
106-
#include &lt;boost/python/module_init.hpp&gt;
106+
#include &lt;boost/python/module.hpp&gt;
107107

108108
using namespace boost::python;
109109

@@ -121,7 +121,7 @@ <h3>C++ module definition</h3>
121121

122122
X make_x(int n) { return X(n); }
123123

124-
BOOST_PYTHON_MODULE_INIT(implicit_ext)
124+
BOOST_PYTHON_MODULE(implicit_ext)
125125
{
126126
def("x_value", x_value);
127127
def("make_x", make_x);

doc/v2/iterator.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ <h2><a name="functions"></a>Functions</h2>
355355

356356
<h2><a name="examples"></a>Examples</h2>
357357
<pre>
358-
#include &lt;boost/python/module_init.hpp&gt;
358+
#include &lt;boost/python/module.hpp&gt;
359359
#include &lt;boost/python/class.hpp&gt;
360360

361361
#include &lt;vector&gt;
362362

363363
using namespace boost::python;
364-
BOOST_PYTHON_MODULE_INIT(demo)
364+
BOOST_PYTHON_MODULE(demo)
365365
{
366366
class_&lt;std::vector&lt;double&gt; &gt;("dvec")
367367
.def("__iter__", iterator&lt;std::vector&lt;double&gt; &gt;())

0 commit comments

Comments
 (0)