ArkScript
A small, fast, functional and scripting language for video games
Constants.hpp File Reference

Constants used by ArkScript. More...

#include <string_view>
#include <cinttypes>
#include <cstddef>
Include dependency graph for Constants.hpp:
This graph shows which files directly or indirectly include this file:

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-2266f3b8" }
 
constexpr uint16_t Ark::FeatureImportSolver = 1 << 0
 
constexpr uint16_t Ark::FeatureMacroProcessor = 1 << 1
 
constexpr uint16_t Ark::FeatureASTOptimizer = 1 << 2
 
constexpr uint16_t Ark::FeatureIROptimizer = 1 << 3
 
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::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 = 8192
 

Detailed Description

Constants used by ArkScript.

Author
Alexandre Plateau (lexpl.nosp@m.t.de.nosp@m.v@gma.nosp@m.il.c.nosp@m.om)
Version
0.2
Date
2020-10-27

Definition in file Constants.hpp.

Macro Definition Documentation

◆ ARK_CACHE_DIRNAME

#define ARK_CACHE_DIRNAME   "__arkscript__"

Definition at line 26 of file Constants.hpp.

Referenced by Ark::State::doFile().

◆ ARK_COMPILER

#define ARK_COMPILER   "AppleClang"

Definition at line 25 of file Constants.hpp.

Referenced by main().

◆ ARK_NO_NAME_FILE

◆ ARK_PLATFORM_NAME

#define ARK_PLATFORM_NAME   "Other"

Definition at line 40 of file Constants.hpp.

Referenced by Ark::State::setArgs().

Variable Documentation

◆ ARK_FULL_VERSION

std::string_view ARK_FULL_VERSION { "4.0.0-2266f3b8" }
constexpr

Definition at line 23 of file Constants.hpp.

Referenced by main().

◆ ARK_VERSION

std::string_view ARK_VERSION { "4.0.0" }
constexpr

Definition at line 22 of file Constants.hpp.

Referenced by Ark::State::configure().

◆ ARK_VERSION_MAJOR

int ARK_VERSION_MAJOR = 4
constexpr

◆ ARK_VERSION_MINOR

int ARK_VERSION_MINOR = 0
constexpr

Definition at line 19 of file Constants.hpp.

Referenced by Ark::internal::IRCompiler::pushFileHeader().

◆ ARK_VERSION_PATCH

int ARK_VERSION_PATCH = 0
constexpr

Definition at line 20 of file Constants.hpp.

Referenced by Ark::internal::IRCompiler::pushFileHeader().