mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
This commit is contained in:
parent
2f9b5eb700
commit
4c88032147
@ -401,7 +401,11 @@ struct Py_<NativeFunc> final: PyObject {
|
|||||||
Py_(Type type, NativeFunc val): PyObject(type), _value(val) {
|
Py_(Type type, NativeFunc val): PyObject(type), _value(val) {
|
||||||
enable_instance_dict();
|
enable_instance_dict();
|
||||||
}
|
}
|
||||||
void _obj_gc_mark() override {}
|
void _obj_gc_mark() override {
|
||||||
|
if(_value.decl != nullptr){
|
||||||
|
_value.decl->_gc_mark();
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user