mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
25d06bdb44
commit
47a22c495f
@ -143,8 +143,7 @@ namespace pkpy{
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool VM::isinstance(PyObject* obj, Type base){
|
bool VM::isinstance(PyObject* obj, Type base){
|
||||||
Type obj_t = PK_OBJ_GET(Type, _t(obj));
|
return issubclass(_tp(obj), base);
|
||||||
return issubclass(obj_t, base);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VM::issubclass(Type cls, Type base){
|
bool VM::issubclass(Type cls, Type base){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user