From f46f4380ff89a72b4f75be849d5b05af2edc13a0 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 14 Jul 2023 22:27:44 +0800 Subject: [PATCH] ... --- docs/C-API/introduction.md | 5 +---- docs/C-API/stack.md | 12 ++---------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/docs/C-API/introduction.md b/docs/C-API/introduction.md index 4c31f3a3..33107251 100644 --- a/docs/C-API/introduction.md +++ b/docs/C-API/introduction.md @@ -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 - diff --git a/docs/C-API/stack.md b/docs/C-API/stack.md index 3f25e3db..572b9cba 100644 --- a/docs/C-API/stack.md +++ b/docs/C-API/stack.md @@ -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 - - +### Variable access + `bool pkpy_getattr(pkpy_vm*, pkpy_CName name)`