Update config.md

This commit is contained in:
blueloveTH 2024-04-20 21:39:18 +08:00
parent a08efc0a6a
commit d2baf1b145

View File

@ -25,8 +25,6 @@ You can do the following to ensure thread safety for `VM` instances:
### Full config ### Full config
You can create a `user_config.h` in the same directory as `pocketpy.h` to override some default settings. You can take a look at `include/pocketpy/config.h` to see all the available configuration macros.
1. Copy [src/config.h](https://github.com/pocketpy/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.