mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
b3cbb121a4
commit
9906748e9c
@ -205,7 +205,8 @@ inline void init_builtins(VM* _vm) {
|
|||||||
_vm->bind__repr__(_vm->tp_object, [](VM* vm, PyObject* obj) {
|
_vm->bind__repr__(_vm->tp_object, [](VM* vm, PyObject* obj) {
|
||||||
if(is_tagged(obj)) FATAL_ERROR();
|
if(is_tagged(obj)) FATAL_ERROR();
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "<" << OBJ_NAME(vm->_t(obj)) << " object at 0x" << std::hex << obj << ">";
|
ss << "<" << OBJ_NAME(vm->_t(obj)) << " object at 0x";
|
||||||
|
ss << std::hex << reinterpret_cast<intptr_t>(obj) << ">";
|
||||||
return VAR(ss.str());
|
return VAR(ss.str());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user