mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
957 B
957 B
icon | label | order |
---|---|---|
dot | Advanced Config | -2 |
Enable os-related features
If you want to enable os-related features, you can do this before including pocketpy.h
.
#define PK_ENABLE_OS 1
#include <pocketpy.h>
Working with multiple threads
pkpy does not support multi-threading. But you can create multiple VM
instances and run them in different threads.
You can do the following to ensure thread safety for VM
instances:
#define PK_ENABLE_THREAD 1
#include <pocketpy.h>
Full config
You can create a user_config.h
in the same directory as pocketpy.h
to override some default settings.
- Copy src/config.h and rename it to
user_config.h
. - Define a macro
PK_USER_CONFIG_H
inuser_config.h
. This invalidates the defaultconfig.h
and enables youruser_config.h
. - Edit
user_config.h
to override default settings.