This commit is contained in:
blueloveTH 2023-02-01 17:37:53 +08:00
parent c635fb828b
commit c381689d3e
3 changed files with 5 additions and 5 deletions

View File

@ -6638,7 +6638,7 @@ extern "C" {
__EXPORT
/// 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`.
char* pkpy_vm_get_global(VM* vm, const char* name){
auto it = vm->_main->attribs.find(name);
@ -6654,7 +6654,7 @@ extern "C" {
__EXPORT
/// Evaluate an expression.
///
/// Return __repr__ of the result.
/// Return `__repr__` of the result.
/// If there is any error, return `nullptr`.
char* pkpy_vm_eval(VM* vm, const char* source){
PyVarOrNull ret = vm->exec(source, "<eval>", EVAL_MODE);

@ -1 +1 @@
Subproject commit 84bca9a3b6e86d18fa8df303c7fa80e751960dbe
Subproject commit c951825d2533b000213d57f027569fc08ed7f02a

View File

@ -710,7 +710,7 @@ extern "C" {
__EXPORT
/// 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`.
char* pkpy_vm_get_global(VM* vm, const char* name){
auto it = vm->_main->attribs.find(name);
@ -726,7 +726,7 @@ extern "C" {
__EXPORT
/// Evaluate an expression.
///
/// Return __repr__ of the result.
/// Return `__repr__` of the result.
/// If there is any error, return `nullptr`.
char* pkpy_vm_eval(VM* vm, const char* source){
PyVarOrNull ret = vm->exec(source, "<eval>", EVAL_MODE);