mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 21:10:19 +00:00
Update pocketpy.dart
up
This commit is contained in:
parent
1a2153e5b4
commit
90f308642a
@ -25,6 +25,6 @@ The initial version. Hello, world!
|
||||
+ Add `math.isnan` and `math.isinf`
|
||||
+ Fix a bug of `__checkType`
|
||||
|
||||
## 0.5.0+2
|
||||
## 0.5.0+3
|
||||
|
||||
+ Fix a bug on Windows
|
@ -101,7 +101,7 @@ class VM {
|
||||
var ret = _Bindings.pkpy_vm_eval(pointer, _Str(source).p);
|
||||
if (ret == ffi.nullptr) return null;
|
||||
String s = ret.toDartString();
|
||||
calloc.free(ret);
|
||||
_Bindings.pkpy_delete(ret);
|
||||
return s;
|
||||
}
|
||||
|
||||
@ -118,7 +118,7 @@ class VM {
|
||||
var ret = _Bindings.pkpy_vm_get_global(pointer, _Str(name).p);
|
||||
if (ret == ffi.nullptr) return null;
|
||||
String s = ret.toDartString();
|
||||
calloc.free(ret);
|
||||
_Bindings.pkpy_delete(ret);
|
||||
return s;
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ class ThreadedVM extends VM {
|
||||
var ret = _Bindings.pkpy_tvm_read_jsonrpc_request(pointer);
|
||||
if (ret == ffi.nullptr) return null;
|
||||
String s = ret.toDartString();
|
||||
calloc.free(ret);
|
||||
_Bindings.pkpy_delete(ret);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: pocketpy
|
||||
description: A lightweight Python interpreter for game engines.
|
||||
version: 0.5.0+2
|
||||
version: 0.5.0+3
|
||||
homepage: https://pocketpy.dev
|
||||
repository: https://github.com/blueloveth/pocketpy
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user