blueloveTH 1 éve
szülő
commit
4cf9199c72
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      include/pocketpy/config.h

+ 5 - 2
include/pocketpy/config.h

@@ -25,16 +25,19 @@
 #define PK_FREE(ptr)                free(ptr)
 #define PK_FREE(ptr)                free(ptr)
 #endif
 #endif
 
 
-/*************** internal settings ***************/
-
 // This is the maximum size of the value stack in py_TValue units
 // 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`
 // 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
 #define PK_VM_STACK_SIZE            16384
+#endif
 
 
 // This is the maximum number of local variables in a function
 // This is the maximum number of local variables in a function
 // (not recommended to change this)
 // (not recommended to change this)
+#ifndef PK_MAX_CO_VARNAMES          // can be overridden by cmake
 #define PK_MAX_CO_VARNAMES          64
 #define PK_MAX_CO_VARNAMES          64
+#endif
 
 
+/*************** internal settings ***************/
 // This is the maximum character length of a module path
 // This is the maximum character length of a module path
 #define PK_MAX_MODULE_PATH_LEN      63
 #define PK_MAX_MODULE_PATH_LEN      63