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)`