py_tphookattributes method

void py_tphookattributes(
  1. int type,
  2. Pointer<NativeFunction<Bool Function(py_Ref self, py_Name name)>> getattribute,
  3. Pointer<NativeFunction<Bool Function(py_Ref self, py_Name name, py_Ref val)>> setattribute,
  4. Pointer<NativeFunction<Bool Function(py_Ref self, py_Name name)>> delattribute,
  5. Pointer<NativeFunction<Bool Function(py_Ref self, py_Name name)>> getunboundmethod,
)

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,
  );
}