blueloveTH 2023-06-29 19:35:29 +08:00
parent 2f9b5eb700
commit 4c88032147

View File

@ -401,7 +401,11 @@ struct Py_<NativeFunc> final: PyObject {
Py_(Type type, NativeFunc val): PyObject(type), _value(val) {
enable_instance_dict();
}
void _obj_gc_mark() override {}
void _obj_gc_mark() override {
if(_value.decl != nullptr){
_value.decl->_gc_mark();
}
}
};
template<>