This commit is contained in:
blueloveTH 2024-06-01 18:22:50 +08:00
parent a59592b799
commit 197d8414bb
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@
#define PK_VM_STACK_SIZE 16384
// This is the maximum number of local variables in a function
// (not recommended to change this / it should be less than 200)
// (not recommended to change this)
#define PK_MAX_CO_VARNAMES 64
// Hash table load factor (smaller ones mean less collision but more memory)

View File

@ -178,7 +178,7 @@ void add_module_os(VM* vm){
}
List ret;
for(auto& p: di) ret.push_back(VAR(p.path().filename().string()));
return VAR(ret);
return VAR(std::move(ret));
});
vm->bind_func(mod, "remove", 1, [](VM* vm, ArgsView args){