![]() |
ArkScript
A small, fast, functional and scripting language for video games
|
Constants used by ArkScript. More...
#include <string_view>
#include <cinttypes>
#include <cstddef>
Go to the source code of this file.
Namespaces | |
namespace | Ark |
Macros | |
#define | ARK_COMPILER "AppleClang" |
#define | ARK_CACHE_DIRNAME "__arkscript__" |
#define | ARK_NO_NAME_FILE "FILE" |
#define | ARK_PLATFORM_NAME "Other" |
Variables | |
constexpr int | ARK_VERSION_MAJOR = 4 |
constexpr int | ARK_VERSION_MINOR = 0 |
constexpr int | ARK_VERSION_PATCH = 0 |
constexpr std::string_view | ARK_VERSION { "4.0.0" } |
constexpr std::string_view | ARK_FULL_VERSION { "4.0.0-1ad14f4d" } |
constexpr uint16_t | Ark::FeatureImportSolver = 1 << 0 |
constexpr uint16_t | Ark::FeatureMacroProcessor = 1 << 1 |
constexpr uint16_t | Ark::FeatureASTOptimizer = 1 << 2 |
This is disabled so that embedding ArkScript does not prune nodes from the AST ; it is active in the arkscript executable. | |
constexpr uint16_t | Ark::FeatureIROptimizer = 1 << 3 |
constexpr uint16_t | Ark::FeatureNameResolver = 1 << 4 |
constexpr uint16_t | Ark::FeatureDumpIR = 1 << 14 |
constexpr uint16_t | Ark::FeatureTestFailOnException = 1 << 15 |
This feature should only be used in tests, to disable diagnostics generation and enable exceptions to be thrown. | |
constexpr uint16_t | Ark::DefaultFeatures |
constexpr std::size_t | Ark::MaxNestedNodes = 1024 |
Maximum number of nodes that can be nested while parsing code. | |
constexpr std::size_t | Ark::MaxMacroProcessingDepth = 256 |
Controls the number of recursive calls to MacroProcessor::processNode. | |
constexpr std::size_t | Ark::MaxMacroUnificationDepth = 256 |
Controls the number of recursive calls to MacroProcessor::unify. | |
constexpr std::size_t | Ark::VMStackSize = 4096 |
constexpr std::size_t | Ark::ScopeStackSize = 8192 |
Constants used by ArkScript.
Definition in file Constants.hpp.
#define ARK_CACHE_DIRNAME "__arkscript__" |
Definition at line 25 of file Constants.hpp.
Referenced by Ark::State::doFile().
#define ARK_COMPILER "AppleClang" |
Definition at line 24 of file Constants.hpp.
Referenced by main().
#define ARK_NO_NAME_FILE "FILE" |
Definition at line 26 of file Constants.hpp.
Referenced by Ark::Welder::computeASTFromString(), Ark::VM::loadPlugin(), Ark::Diagnostics::makeContext(), Formatter::run(), Formatter::runWithString(), and Formatter::warnIfCommentsWereRemoved().
#define ARK_PLATFORM_NAME "Other" |
Definition at line 39 of file Constants.hpp.
Referenced by Ark::State::setArgs().
|
constexpr |
Definition at line 22 of file Constants.hpp.
Referenced by main(), and Ark::Repl::run().
|
constexpr |
Definition at line 21 of file Constants.hpp.
Referenced by Ark::State::configure().
|
constexpr |
Definition at line 17 of file Constants.hpp.
Referenced by Ark::State::configure(), and Ark::internal::IRCompiler::pushFileHeader().
|
constexpr |
Definition at line 18 of file Constants.hpp.
Referenced by Ark::internal::IRCompiler::pushFileHeader().
|
constexpr |
Definition at line 19 of file Constants.hpp.
Referenced by Ark::internal::IRCompiler::pushFileHeader().