mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Don't use SWIG_BUILTIN_INIT for passing SWIG ptrs, use SWIG_POINTER_OWN
* The former is only needed inside tp_init of a new object. Instead when we want to pass in and own a pointer, we use SWIG_POINTER_OWN. * This also removes the need to pass 'self' all the way down in ConvertToPy which tidies up a lot of code.
This commit is contained in:
@@ -66,7 +66,7 @@ FIXED_ARRAY_TYPEMAPS(uint16_t)
|
||||
|
||||
%typemap(in, fragment="pyconvert") std::function {
|
||||
PyObject *func = $input;
|
||||
$1 = ConvertFunc<$1_ltype>(self, "$symname", func, exHandle$argnum);
|
||||
$1 = ConvertFunc<$1_ltype>("$symname", func, exHandle$argnum);
|
||||
}
|
||||
|
||||
%typemap(argout) std::function (ExceptionHandling exHandle) {
|
||||
|
||||
Reference in New Issue
Block a user