mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
fix a bug
This commit is contained in:
parent
f8ce2e3849
commit
59c6252503
11
src/obj.h
11
src/obj.h
@ -335,6 +335,17 @@ struct Py_<BoundMethod> final: PyObject {
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Py_<Property> final: PyObject {
|
||||
Property _value;
|
||||
void* value() override { return &_value; }
|
||||
Py_(Type type, Property val): PyObject(type), _value(val) {}
|
||||
void _obj_gc_mark() override {
|
||||
OBJ_MARK(_value.getter);
|
||||
OBJ_MARK(_value.setter);
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Py_<Slice> final: PyObject {
|
||||
Slice _value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user