Made MAX_FRAMES, MAX_FRAME_LOCALS, MAX_GLOBALS, OUTPUT_SIZE and STACK_SIZE configurable during build configuration using cmake defines (-D). No code changes. (0.40.5)
This commit is contained in:
parent
5c57391e5d
commit
bebe6dfda0
4 changed files with 45 additions and 0 deletions
|
|
@ -33,3 +33,10 @@ endif()
|
|||
|
||||
# Debug option to enable verbose parser/VM logging
|
||||
option(FUN_DEBUG "Enable extra debug logging in Fun" OFF)
|
||||
|
||||
# VM settings (configurable via -D...)
|
||||
set(MAX_FRAMES 128 CACHE STRING "Maximum depth of the call stack (frames)")
|
||||
set(MAX_FRAME_LOCALS 64 CACHE STRING "Maximum number of local variables per frame")
|
||||
set(MAX_GLOBALS 128 CACHE STRING "Maximum number of global variables")
|
||||
set(OUTPUT_SIZE 1024 CACHE STRING "Size of the VM output buffer (number of values)")
|
||||
set(STACK_SIZE 1024 CACHE STRING "Size of the VM evaluation stack")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue