|
17 | 17 | namespace boost { namespace python { |
18 | 18 |
|
19 | 19 | template <class R> |
20 | | -PyObject* call(R (*f)(), PyObject* args, PyObject* keywords) |
| 20 | +inline PyObject* call(R (*f)(), PyObject* args, PyObject* keywords) |
21 | 21 | { |
22 | 22 | return detail::returning<R>::call(f, args, keywords); |
23 | 23 | } |
24 | 24 |
|
25 | 25 | template <class R, class A0> |
26 | | -PyObject* call(R (*f)(A0), PyObject* args, PyObject* keywords) |
| 26 | +inline PyObject* call(R (*f)(A0), PyObject* args, PyObject* keywords) |
27 | 27 | { |
28 | 28 | return detail::returning<R>::call(f, args, keywords); |
29 | 29 | } |
30 | 30 |
|
31 | 31 | template <class R, class A0, class A1> |
32 | | -PyObject* call(R (*f)(A0, A1), PyObject* args, PyObject* keywords) |
| 32 | +inline PyObject* call(R (*f)(A0, A1), PyObject* args, PyObject* keywords) |
33 | 33 | { |
34 | 34 | return detail::returning<R>::call(f, args, keywords); |
35 | 35 | } |
36 | 36 |
|
37 | 37 | template <class R, class A0, class A1, class A2> |
38 | | -PyObject* call(R (*f)(A0, A1, A2), PyObject* args, PyObject* keywords) |
| 38 | +inline PyObject* call(R (*f)(A0, A1, A2), PyObject* args, PyObject* keywords) |
39 | 39 | { |
40 | 40 | return detail::returning<R>::call(f, args, keywords); |
41 | 41 | } |
42 | 42 |
|
43 | 43 | template <class R, class A0, class A1, class A2, class A3> |
44 | | -PyObject* call(R (*f)(A0, A1, A2, A3), PyObject* args, PyObject* keywords) |
| 44 | +inline PyObject* call(R (*f)(A0, A1, A2, A3), PyObject* args, PyObject* keywords) |
45 | 45 | { |
46 | 46 | return detail::returning<R>::call(f, args, keywords); |
47 | 47 | } |
48 | 48 |
|
49 | 49 | template <class R, class A0, class A1, class A2, class A3, class A4> |
50 | | -PyObject* call(R (*f)(A0, A1, A2, A3, A4), PyObject* args, PyObject* keywords) |
| 50 | +inline PyObject* call(R (*f)(A0, A1, A2, A3, A4), PyObject* args, PyObject* keywords) |
51 | 51 | { |
52 | 52 | return detail::returning<R>::call(f, args, keywords); |
53 | 53 | } |
54 | 54 |
|
55 | 55 | template <class R, class A0, class A1, class A2, class A3, class A4, class A5> |
56 | | -PyObject* call(R (*f)(A0, A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords) |
| 56 | +inline PyObject* call(R (*f)(A0, A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords) |
57 | 57 | { |
58 | 58 | return detail::returning<R>::call(f, args, keywords); |
59 | 59 | } |
60 | 60 |
|
61 | 61 | // Member functions |
62 | 62 | template <class R, class A0> |
63 | | -PyObject* call(R (A0::*f)(), PyObject* args, PyObject* keywords) |
| 63 | +inline PyObject* call(R (A0::*f)(), PyObject* args, PyObject* keywords) |
64 | 64 | { |
65 | 65 | return detail::returning<R>::call(f, args, keywords); |
66 | 66 | } |
67 | 67 |
|
68 | 68 | template <class R, class A0, class A1> |
69 | | -PyObject* call(R (A0::*f)(A1), PyObject* args, PyObject* keywords) |
| 69 | +inline PyObject* call(R (A0::*f)(A1), PyObject* args, PyObject* keywords) |
70 | 70 | { |
71 | 71 | return detail::returning<R>::call(f, args, keywords); |
72 | 72 | } |
73 | 73 |
|
74 | 74 | template <class R, class A0, class A1, class A2> |
75 | | -PyObject* call(R (A0::*f)(A1, A2), PyObject* args, PyObject* keywords) |
| 75 | +inline PyObject* call(R (A0::*f)(A1, A2), PyObject* args, PyObject* keywords) |
76 | 76 | { |
77 | 77 | return detail::returning<R>::call(f, args, keywords); |
78 | 78 | } |
79 | 79 |
|
80 | 80 | template <class R, class A0, class A1, class A2, class A3> |
81 | | -PyObject* call(R (A0::*f)(A1, A2, A3), PyObject* args, PyObject* keywords) |
| 81 | +inline PyObject* call(R (A0::*f)(A1, A2, A3), PyObject* args, PyObject* keywords) |
82 | 82 | { |
83 | 83 | return detail::returning<R>::call(f, args, keywords); |
84 | 84 | } |
85 | 85 |
|
86 | 86 | template <class R, class A0, class A1, class A2, class A3, class A4> |
87 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4), PyObject* args, PyObject* keywords) |
| 87 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4), PyObject* args, PyObject* keywords) |
88 | 88 | { |
89 | 89 | return detail::returning<R>::call(f, args, keywords); |
90 | 90 | } |
91 | 91 |
|
92 | 92 | template <class R, class A0, class A1, class A2, class A3, class A4, class A5> |
93 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords) |
| 93 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords) |
94 | 94 | { |
95 | 95 | return detail::returning<R>::call(f, args, keywords); |
96 | 96 | } |
97 | 97 |
|
98 | 98 | template <class R, class A0> |
99 | | -PyObject* call(R (A0::*f)() const, PyObject* args, PyObject* keywords) |
| 99 | +inline PyObject* call(R (A0::*f)() const, PyObject* args, PyObject* keywords) |
100 | 100 | { |
101 | 101 | return detail::returning<R>::call(f, args, keywords); |
102 | 102 | } |
103 | 103 |
|
104 | 104 | template <class R, class A0, class A1> |
105 | | -PyObject* call(R (A0::*f)(A1) const, PyObject* args, PyObject* keywords) |
| 105 | +inline PyObject* call(R (A0::*f)(A1) const, PyObject* args, PyObject* keywords) |
106 | 106 | { |
107 | 107 | return detail::returning<R>::call(f, args, keywords); |
108 | 108 | } |
109 | 109 |
|
110 | 110 | template <class R, class A0, class A1, class A2> |
111 | | -PyObject* call(R (A0::*f)(A1, A2) const, PyObject* args, PyObject* keywords) |
| 111 | +inline PyObject* call(R (A0::*f)(A1, A2) const, PyObject* args, PyObject* keywords) |
112 | 112 | { |
113 | 113 | return detail::returning<R>::call(f, args, keywords); |
114 | 114 | } |
115 | 115 |
|
116 | 116 | template <class R, class A0, class A1, class A2, class A3> |
117 | | -PyObject* call(R (A0::*f)(A1, A2, A3) const, PyObject* args, PyObject* keywords) |
| 117 | +inline PyObject* call(R (A0::*f)(A1, A2, A3) const, PyObject* args, PyObject* keywords) |
118 | 118 | { |
119 | 119 | return detail::returning<R>::call(f, args, keywords); |
120 | 120 | } |
121 | 121 |
|
122 | 122 | template <class R, class A0, class A1, class A2, class A3, class A4> |
123 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4) const, PyObject* args, PyObject* keywords) |
| 123 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4) const, PyObject* args, PyObject* keywords) |
124 | 124 | { |
125 | 125 | return detail::returning<R>::call(f, args, keywords); |
126 | 126 | } |
127 | 127 |
|
128 | 128 | template <class R, class A0, class A1, class A2, class A3, class A4, class A5> |
129 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const, PyObject* args, PyObject* keywords) |
| 129 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const, PyObject* args, PyObject* keywords) |
130 | 130 | { |
131 | 131 | return detail::returning<R>::call(f, args, keywords); |
132 | 132 | } |
133 | 133 |
|
134 | 134 | template <class R, class A0> |
135 | | -PyObject* call(R (A0::*f)() volatile, PyObject* args, PyObject* keywords) |
| 135 | +inline PyObject* call(R (A0::*f)() volatile, PyObject* args, PyObject* keywords) |
136 | 136 | { |
137 | 137 | return detail::returning<R>::call(f, args, keywords); |
138 | 138 | } |
139 | 139 |
|
140 | 140 | template <class R, class A0, class A1> |
141 | | -PyObject* call(R (A0::*f)(A1) volatile, PyObject* args, PyObject* keywords) |
| 141 | +inline PyObject* call(R (A0::*f)(A1) volatile, PyObject* args, PyObject* keywords) |
142 | 142 | { |
143 | 143 | return detail::returning<R>::call(f, args, keywords); |
144 | 144 | } |
145 | 145 |
|
146 | 146 | template <class R, class A0, class A1, class A2> |
147 | | -PyObject* call(R (A0::*f)(A1, A2) volatile, PyObject* args, PyObject* keywords) |
| 147 | +inline PyObject* call(R (A0::*f)(A1, A2) volatile, PyObject* args, PyObject* keywords) |
148 | 148 | { |
149 | 149 | return detail::returning<R>::call(f, args, keywords); |
150 | 150 | } |
151 | 151 |
|
152 | 152 | template <class R, class A0, class A1, class A2, class A3> |
153 | | -PyObject* call(R (A0::*f)(A1, A2, A3) volatile, PyObject* args, PyObject* keywords) |
| 153 | +inline PyObject* call(R (A0::*f)(A1, A2, A3) volatile, PyObject* args, PyObject* keywords) |
154 | 154 | { |
155 | 155 | return detail::returning<R>::call(f, args, keywords); |
156 | 156 | } |
157 | 157 |
|
158 | 158 | template <class R, class A0, class A1, class A2, class A3, class A4> |
159 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4) volatile, PyObject* args, PyObject* keywords) |
| 159 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4) volatile, PyObject* args, PyObject* keywords) |
160 | 160 | { |
161 | 161 | return detail::returning<R>::call(f, args, keywords); |
162 | 162 | } |
163 | 163 |
|
164 | 164 | template <class R, class A0, class A1, class A2, class A3, class A4, class A5> |
165 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) volatile, PyObject* args, PyObject* keywords) |
| 165 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) volatile, PyObject* args, PyObject* keywords) |
166 | 166 | { |
167 | 167 | return detail::returning<R>::call(f, args, keywords); |
168 | 168 | } |
169 | 169 |
|
170 | 170 | template <class R, class A0> |
171 | | -PyObject* call(R (A0::*f)() const volatile, PyObject* args, PyObject* keywords) |
| 171 | +inline PyObject* call(R (A0::*f)() const volatile, PyObject* args, PyObject* keywords) |
172 | 172 | { |
173 | 173 | return detail::returning<R>::call(f, args, keywords); |
174 | 174 | } |
175 | 175 |
|
176 | 176 | template <class R, class A0, class A1> |
177 | | -PyObject* call(R (A0::*f)(A1) const volatile, PyObject* args, PyObject* keywords) |
| 177 | +inline PyObject* call(R (A0::*f)(A1) const volatile, PyObject* args, PyObject* keywords) |
178 | 178 | { |
179 | 179 | return detail::returning<R>::call(f, args, keywords); |
180 | 180 | } |
181 | 181 |
|
182 | 182 | template <class R, class A0, class A1, class A2> |
183 | | -PyObject* call(R (A0::*f)(A1, A2) const volatile, PyObject* args, PyObject* keywords) |
| 183 | +inline PyObject* call(R (A0::*f)(A1, A2) const volatile, PyObject* args, PyObject* keywords) |
184 | 184 | { |
185 | 185 | return detail::returning<R>::call(f, args, keywords); |
186 | 186 | } |
187 | 187 |
|
188 | 188 | template <class R, class A0, class A1, class A2, class A3> |
189 | | -PyObject* call(R (A0::*f)(A1, A2, A3) const volatile, PyObject* args, PyObject* keywords) |
| 189 | +inline PyObject* call(R (A0::*f)(A1, A2, A3) const volatile, PyObject* args, PyObject* keywords) |
190 | 190 | { |
191 | 191 | return detail::returning<R>::call(f, args, keywords); |
192 | 192 | } |
193 | 193 |
|
194 | 194 | template <class R, class A0, class A1, class A2, class A3, class A4> |
195 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4) const volatile, PyObject* args, PyObject* keywords) |
| 195 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4) const volatile, PyObject* args, PyObject* keywords) |
196 | 196 | { |
197 | 197 | return detail::returning<R>::call(f, args, keywords); |
198 | 198 | } |
199 | 199 |
|
200 | 200 | template <class R, class A0, class A1, class A2, class A3, class A4, class A5> |
201 | | -PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const volatile, PyObject* args, PyObject* keywords) |
| 201 | +inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const volatile, PyObject* args, PyObject* keywords) |
202 | 202 | { |
203 | 203 | return detail::returning<R>::call(f, args, keywords); |
204 | 204 | } |
|
0 commit comments