mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
up
This commit is contained in:
parent
c635fb828b
commit
c381689d3e
@ -6638,7 +6638,7 @@ extern "C" {
|
|||||||
__EXPORT
|
__EXPORT
|
||||||
/// Get a global variable of a virtual machine.
|
/// Get a global variable of a virtual machine.
|
||||||
///
|
///
|
||||||
/// Return __repr__ of the result.
|
/// Return `__repr__` of the result.
|
||||||
/// If the variable is not found, return `nullptr`.
|
/// If the variable is not found, return `nullptr`.
|
||||||
char* pkpy_vm_get_global(VM* vm, const char* name){
|
char* pkpy_vm_get_global(VM* vm, const char* name){
|
||||||
auto it = vm->_main->attribs.find(name);
|
auto it = vm->_main->attribs.find(name);
|
||||||
@ -6654,7 +6654,7 @@ extern "C" {
|
|||||||
__EXPORT
|
__EXPORT
|
||||||
/// Evaluate an expression.
|
/// Evaluate an expression.
|
||||||
///
|
///
|
||||||
/// Return __repr__ of the result.
|
/// Return `__repr__` of the result.
|
||||||
/// If there is any error, return `nullptr`.
|
/// If there is any error, return `nullptr`.
|
||||||
char* pkpy_vm_eval(VM* vm, const char* source){
|
char* pkpy_vm_eval(VM* vm, const char* source){
|
||||||
PyVarOrNull ret = vm->exec(source, "<eval>", EVAL_MODE);
|
PyVarOrNull ret = vm->exec(source, "<eval>", EVAL_MODE);
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 84bca9a3b6e86d18fa8df303c7fa80e751960dbe
|
Subproject commit c951825d2533b000213d57f027569fc08ed7f02a
|
@ -710,7 +710,7 @@ extern "C" {
|
|||||||
__EXPORT
|
__EXPORT
|
||||||
/// Get a global variable of a virtual machine.
|
/// Get a global variable of a virtual machine.
|
||||||
///
|
///
|
||||||
/// Return __repr__ of the result.
|
/// Return `__repr__` of the result.
|
||||||
/// If the variable is not found, return `nullptr`.
|
/// If the variable is not found, return `nullptr`.
|
||||||
char* pkpy_vm_get_global(VM* vm, const char* name){
|
char* pkpy_vm_get_global(VM* vm, const char* name){
|
||||||
auto it = vm->_main->attribs.find(name);
|
auto it = vm->_main->attribs.find(name);
|
||||||
@ -726,7 +726,7 @@ extern "C" {
|
|||||||
__EXPORT
|
__EXPORT
|
||||||
/// Evaluate an expression.
|
/// Evaluate an expression.
|
||||||
///
|
///
|
||||||
/// Return __repr__ of the result.
|
/// Return `__repr__` of the result.
|
||||||
/// If there is any error, return `nullptr`.
|
/// If there is any error, return `nullptr`.
|
||||||
char* pkpy_vm_eval(VM* vm, const char* source){
|
char* pkpy_vm_eval(VM* vm, const char* source){
|
||||||
PyVarOrNull ret = vm->exec(source, "<eval>", EVAL_MODE);
|
PyVarOrNull ret = vm->exec(source, "<eval>", EVAL_MODE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user