@@ -175,9 +175,6 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(set_ptr_overload, SetPtr, 1, 2)
175175BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(set_string_ptr_overload, SetStringPtr, 1 , 2 )
176176BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(set_string_array_overload, SetStringArray, 1 , 2 )
177177
178- // Other overloads
179- BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(get_virtual_func_overload, GetVirtualFunc, 1 , 2 )
180-
181178void export_memtools()
182179{
183180 class_<CPointer>(" Pointer" , init< optional<unsigned long > >())
@@ -255,10 +252,23 @@ void export_memtools()
255252 // Other methods
256253 .def (" get_virtual_func" ,
257254 &CPointer::GetVirtualFunc,
258- get_virtual_func_overload (
259- " Returns the address (as a CPointer instance) of a virtual function at the given index." ,
260- args (" index" , " platform_check" )
261- )[manage_new_object_policy ()]
255+ " Returns the address (as a CPointer instance) of a virtual function at the given index." ,
256+ args (" index" ),
257+ manage_new_object_policy ()
258+ )
259+
260+ .def (" make_function" ,
261+ &CPointer::MakeFunction,
262+ " Creates a new Function instance." ,
263+ args (" convention" , " parameters" ),
264+ manage_new_object_policy ()
265+ )
266+
267+ .def (" make_virtual_function" ,
268+ &CPointer::MakeVirtualFunction,
269+ " Creates a new Function instance." ,
270+ args (" index" , " convention" , " parameters" ),
271+ manage_new_object_policy ()
262272 )
263273
264274 .def (" realloc" ,
@@ -272,13 +282,6 @@ void export_memtools()
272282 " Deallocates a memory block."
273283 )
274284
275- .def (" make_function" ,
276- &CPointer::MakeFunction,
277- " Creates a new Function instance." ,
278- args (" convention" , " parameters" ),
279- manage_new_object_policy ()
280- )
281-
282285 .def (" get_size" ,
283286 &CPointer::GetSize,
284287 " Returns the size of the memory block."
0 commit comments