This commit is contained in:
blueloveTH 2023-07-14 22:27:44 +08:00
parent 386ab595a9
commit f46f4380ff
2 changed files with 3 additions and 14 deletions

View File

@ -19,7 +19,7 @@ Special thanks for [@koltenpearson](https://github.com/koltenpearson)'s contribu
**C-APIs are always stable and backward compatible** in order to support the second use case.
!!!
### Basic Functions
### Basic functions
+ `pkpy_vm* pkpy_new_vm(bool enable_os)`
@ -36,6 +36,3 @@ Special thanks for [@koltenpearson](https://github.com/koltenpearson)'s contribu
+ `bool pkpy_exec_2(pkpy_vm*, const char* source, const char* filename, int mode, const char* module)`
Wraps `vm->exec_2`. Execute a string of source code with more options.
### Basic Types

View File

@ -4,7 +4,7 @@ icon: dot
order: 8
---
### Stack manipulation
### Basic manipulation
+ `bool pkpy_pop(pkpy_vm*, int)`
@ -80,15 +80,7 @@ PK_EXPORT bool pkpy_is_none(pkpy_vm*, int i);
Push a new module onto the stack. `name` is the module name. This is not `import`. It creates a new module object.
### Advanced operations
<!-- PK_EXPORT bool pkpy_getattr(pkpy_vm*, pkpy_CName);
PK_EXPORT bool pkpy_setattr(pkpy_vm*, pkpy_CName);
PK_EXPORT bool pkpy_getglobal(pkpy_vm*, pkpy_CName);
PK_EXPORT bool pkpy_setglobal(pkpy_vm*, pkpy_CName);
PK_EXPORT bool pkpy_eval(pkpy_vm*, const char* source);
PK_EXPORT bool pkpy_unpack_sequence(pkpy_vm*, int size);
PK_EXPORT bool pkpy_get_unbound_method(pkpy_vm*, pkpy_CName); -->
### Variable access
+ `bool pkpy_getattr(pkpy_vm*, pkpy_CName name)`