icon: dot label: 'Advanced Config'
If you want to enable os-related features, you can do this before including pocketpy.h.
#define PK_ENABLE_OS 1
#include <pocketpy.h>
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>
You can create a user_config.h in the same directory as pocketpy.h to override some default settings.
user_config.h.PK_USER_CONFIG_H in user_config.h. This invalidates the default config.h and enables your user_config.h.user_config.h to override default settings.