11#ifndef INCLUDE_ARK_CONSTANTS_HPP_IN
12#define INCLUDE_ARK_CONSTANTS_HPP_IN
24constexpr std::string_view
ARK_VERSION {
"4.7.2-pre" };
31#define ARK_COMPILER "AppleClang"
32#define ARK_BUILD_DATE "2026-08-29T16:41:44Z"
33#define ARK_CACHE_DIRNAME "__arkscript__"
34#define ARK_NO_NAME_FILE "FILE"
36#if defined(_WIN32) || defined(_WIN64)
37# define ARK_PLATFORM_NAME "Windows"
38#elif defined(__APPLE__) || defined(__MACH__)
39# define ARK_PLATFORM_NAME "Mac OSX"
40#elif defined(__linux__)
41# define ARK_PLATFORM_NAME "Linux"
42#elif defined(__FreeBSD__)
43# define ARK_PLATFORM_NAME "FreeBSD"
44#elif defined(__unix) || defined(__unix__)
45# define ARK_PLATFORM_NAME "Unix"
47# define ARK_PLATFORM_NAME "Other"
91#if defined(_WIN32) || defined(_WIN64)
constexpr std::string_view ARK_VERSION
constexpr int ARK_VERSION_MAJOR
constexpr int ARK_VERSION_PATCH
constexpr std::string_view ARK_FULL_VERSION
constexpr int ARK_VERSION_MINOR
constexpr uint16_t DefaultFeatures
constexpr uint16_t FeatureImportSolver
constexpr std::size_t VMStackSize
constexpr uint16_t MaxValue16Bits
constexpr std::size_t MaxNestedNodes
Maximum number of nodes that can be nested while parsing code.
constexpr uint16_t FeatureASTOptimiser
Disabled by default because embedding ArkScript should not prune nodes from the AST ; it is active in...
constexpr uint16_t DisableCache
constexpr uint16_t FeatureIROptimiser
constexpr uint16_t FeatureMacroProcessor
constexpr std::size_t MaxMacroProcessingDepth
Controls the number of recursive calls to MacroProcessor::processNode.
constexpr std::size_t ScopeStackSize
constexpr uint16_t FeatureTestFailOnException
This feature should only be used in tests, to disable diagnostics generation and enable exceptions to...
constexpr std::size_t MaxMacroUnificationDepth
Controls the number of recursive calls to MacroProcessor::unify.
constexpr uint16_t FeatureIRInliner
constexpr std::size_t VMOverflowBufferSize
Additional number of elements the stack can tolerate.
constexpr std::size_t VMStackSizeWithOverflowBuffer
Exceeding VMStackSize, even if we are below VMStackSizeWithOverflowBuffer, means we stack overflowed.
constexpr uint16_t FeatureDumpIR
constexpr std::string_view DefaultLibFolder
constexpr uint16_t FeatureVMDebugger
Disabled by default because embedding ArkScript should not launch the debugger on every error when ru...
constexpr uint16_t FeatureNameResolver