mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
dbf1ea3748
commit
787df86311
@ -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.
|
||||
|
@ -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)`
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user