mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
up
This commit is contained in:
parent
c3b9a8b3c5
commit
c6eba681fc
@ -71,7 +71,6 @@ struct CodeObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void __enter_block(CodeBlockType type){
|
void __enter_block(CodeBlockType type){
|
||||||
const CodeBlock& currBlock = blocks[_curr_block_i];
|
|
||||||
blocks.push_back(CodeBlock{type, _curr_block_i, (int)co_code.size()});
|
blocks.push_back(CodeBlock{type, _curr_block_i, (int)co_code.size()});
|
||||||
_curr_block_i = blocks.size()-1;
|
_curr_block_i = blocks.size()-1;
|
||||||
}
|
}
|
||||||
|
@ -360,7 +360,7 @@ void __initializeBuiltinFunctions(VM* _vm) {
|
|||||||
|
|
||||||
_vm->bindMethod<1>("str", "join", [](VM* vm, const pkpy::Args& args) {
|
_vm->bindMethod<1>("str", "join", [](VM* vm, const pkpy::Args& args) {
|
||||||
const _Str& _self = vm->PyStr_AS_C(args[0]);
|
const _Str& _self = vm->PyStr_AS_C(args[0]);
|
||||||
PyVarList* _list;
|
PyVarList* _list = nullptr;
|
||||||
if(args[1]->is_type(vm->_tp_list)){
|
if(args[1]->is_type(vm->_tp_list)){
|
||||||
_list = &vm->PyList_AS_C(args[1]);
|
_list = &vm->PyList_AS_C(args[1]);
|
||||||
}else if(args[1]->is_type(vm->_tp_tuple)){
|
}else if(args[1]->is_type(vm->_tp_tuple)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user