mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
fix a bug
This commit is contained in:
parent
5603a0de1e
commit
176c829fc1
@ -136,7 +136,6 @@ namespace pkpy{
|
||||
void add_module_c(VM* vm){
|
||||
PyObject* mod = vm->new_module("c");
|
||||
|
||||
#if PK_ENABLE_OS
|
||||
vm->bind_func<1>(mod, "malloc", [](VM* vm, ArgsView args){
|
||||
i64 size = CAST(i64, args[0]);
|
||||
return VAR(malloc(size));
|
||||
@ -161,7 +160,6 @@ void add_module_c(VM* vm){
|
||||
memcpy(dst, src, size);
|
||||
return vm->None;
|
||||
});
|
||||
#endif
|
||||
|
||||
VoidP::register_class(vm, mod);
|
||||
C99Struct::register_class(vm, mod);
|
||||
|
Loading…
x
Reference in New Issue
Block a user