From 6956631c6182fba74841bb99a2cf428ac21f743a Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 26 Jun 2024 13:35:28 +0800 Subject: [PATCH] some fix --- include/pocketpy/pocketpy.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/pocketpy/pocketpy.h b/include/pocketpy/pocketpy.h index e80a3bf7..7e5ddf49 100644 --- a/include/pocketpy/pocketpy.h +++ b/include/pocketpy/pocketpy.h @@ -100,8 +100,8 @@ void py_setslot(py_Ref self, int i, const py_Ref val); py_Ref py_getupvalue(py_Ref self); void py_setupvalue(py_Ref self, const py_Ref val); -/// Gets the attribute of the object. Push the result onto the stack. -int py_getattr(const py_Ref self, py_Name name); +/// Gets the attribute of the object. +int py_getattr(const py_Ref self, py_Name name, py_Ref out); /// Sets the attribute of the object. int py_setattr(py_Ref self, py_Name name, const py_Ref val); @@ -134,8 +134,8 @@ void py_poptmp(int n); py_Ref py_newmodule(const char* name, const char* package); py_Ref py_getmodule(const char* name); -/// Import a module. Push the result onto the stack. -int py_import(const char* name); +/// Import a module. +int py_import(const char* name, py_Ref out); /************* Errors *************/ py_Error* py_getlasterror();