From 4cf9199c728f65d5fe9bd845279d82262bd20c26 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 31 Dec 2024 12:57:42 +0800 Subject: [PATCH] Update config.h --- include/pocketpy/config.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/config.h b/include/pocketpy/config.h index 0b71c69b..36607502 100644 --- a/include/pocketpy/config.h +++ b/include/pocketpy/config.h @@ -25,16 +25,19 @@ #define PK_FREE(ptr) free(ptr) #endif -/*************** internal settings ***************/ - // This is the maximum size of the value stack in py_TValue units // The actual size in bytes equals `sizeof(py_TValue) * PK_VM_STACK_SIZE` +#ifndef PK_VM_STACK_SIZE // can be overridden by cmake #define PK_VM_STACK_SIZE 16384 +#endif // This is the maximum number of local variables in a function // (not recommended to change this) +#ifndef PK_MAX_CO_VARNAMES // can be overridden by cmake #define PK_MAX_CO_VARNAMES 64 +#endif +/*************** internal settings ***************/ // This is the maximum character length of a module path #define PK_MAX_MODULE_PATH_LEN 63