This commit is contained in:
blueloveTH 2023-11-19 23:34:17 +08:00
parent dbf1ea3748
commit 787df86311
3 changed files with 3 additions and 3 deletions

View File

@ -29,4 +29,4 @@ You can create a `user_config.h` in the same directory as `pocketpy.h` to overri
1. Copy [src/config.h](https://github.com/blueloveTH/pocketpy/blob/main/include/pocketpy/config.h) and rename it to `user_config.h`.
2. Define a macro `PK_USER_CONFIG_H` in `user_config.h`. This invalidates the default `config.h` and enables your `user_config.h`.
3. Edit `user_config.h` to override default settings.
3. Edit `user_config.h` to override default settings.

View File

@ -115,4 +115,4 @@ You can also use `check_` prefix functions assert the type of a `PyObject*`,
which will throw `TypeError` on failure.
+ `void check_type(PyObject* obj, Type type)`
+ `void check_non_tagged_type(PyObject* obj, Type type)`
+ `void check_non_tagged_type(PyObject* obj, Type type)`

View File

@ -83,4 +83,4 @@ inline Bytes _default_import_handler(const Str& name){
You can use `vm->py_import` to import a module.
This is equivalent to `import` in python.
Return the module object if success.
Return the module object if success.