This commit is contained in:
blueloveTH 2023-09-29 20:40:41 +08:00
parent 88f16121cb
commit 32b422ab88

View File

@ -342,7 +342,7 @@ __NEXT_STEP:;
_0 = TOP(); \ _0 = TOP(); \
_ti = _inst_type_info(_0); \ _ti = _inst_type_info(_0); \
if(_ti->m##func){ \ if(_ti->m##func){ \
TOP() = VAR(_ti->m##func(this, _0, _1)); \ TOP() = _ti->m##func(this, _0, _1); \
}else{ \ }else{ \
PyObject* self; \ PyObject* self; \
_2 = get_unbound_method(_0, func, &self, false); \ _2 = get_unbound_method(_0, func, &self, false); \
@ -459,7 +459,7 @@ __NEXT_STEP:;
// a in b -> b __contains__ a // a in b -> b __contains__ a
_ti = _inst_type_info(TOP()); _ti = _inst_type_info(TOP());
if(_ti->m__contains__){ if(_ti->m__contains__){
_0 = VAR(_ti->m__contains__(this, TOP(), SECOND())); _0 = _ti->m__contains__(this, TOP(), SECOND());
}else{ }else{
_0 = call_method(TOP(), __contains__, SECOND()); _0 = call_method(TOP(), __contains__, SECOND());
} }