mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
Update codeobject.h
This commit is contained in:
parent
1d8662118b
commit
5e54967903
@ -203,7 +203,7 @@ struct Py_<Function> final: PyObject {
|
||||
Function _value;
|
||||
template<typename... Args>
|
||||
Py_(Type type, Args&&... args): PyObject(type), _value(std::forward<Args>(args)...) {
|
||||
_enable_instance_dict();
|
||||
// _enable_instance_dict();
|
||||
}
|
||||
void _obj_gc_mark() override {
|
||||
_value.decl->_gc_mark();
|
||||
@ -220,7 +220,7 @@ struct Py_<NativeFunc> final: PyObject {
|
||||
NativeFunc _value;
|
||||
template<typename... Args>
|
||||
Py_(Type type, Args&&... args): PyObject(type), _value(std::forward<Args>(args)...) {
|
||||
_enable_instance_dict();
|
||||
// _enable_instance_dict();
|
||||
}
|
||||
void _obj_gc_mark() override {
|
||||
if(_value.decl != nullptr){
|
||||
|
Loading…
x
Reference in New Issue
Block a user