py_tphookattributes method
void
py_tphookattributes(
- int type,
- Pointer<
NativeFunction< getattribute,Bool Function(py_Ref self, py_Name name)> > - Pointer<
NativeFunction< setattribute,Bool Function(py_Ref self, py_Name name, py_Ref val)> > - Pointer<
NativeFunction< delattribute,Bool Function(py_Ref self, py_Name name)> > - Pointer<
NativeFunction< getunboundmethod,Bool Function(py_Ref self, py_Name name)> >
Set attribute hooks for the given type.
Implementation
void py_tphookattributes(
int type,
ffi.Pointer<
ffi.NativeFunction<ffi.Bool Function(py_Ref self, py_Name name)>>
getattribute,
ffi.Pointer<
ffi.NativeFunction<
ffi.Bool Function(py_Ref self, py_Name name, py_Ref val)>>
setattribute,
ffi.Pointer<
ffi.NativeFunction<ffi.Bool Function(py_Ref self, py_Name name)>>
delattribute,
ffi.Pointer<
ffi.NativeFunction<ffi.Bool Function(py_Ref self, py_Name name)>>
getunboundmethod,
) {
return _py_tphookattributes(
type,
getattribute,
setattribute,
delattribute,
getunboundmethod,
);
}