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

Constants used by ArkScript. More...

#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_COMPILATION_OPTIONS   ""
 
#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 int ARK_VERSION = (ARK_VERSION_MAJOR << 16) + (ARK_VERSION_MINOR << 8) + ARK_VERSION_PATCH
 
constexpr char ARK_VERSION_STR [4] = { ARK_VERSION_MAJOR + '0', ARK_VERSION_MINOR + '0', ARK_VERSION_PATCH + '0', 0x00 }
 
constexpr uint16_t Ark::FeatureRemoveUnusedVars = 1 << 4
 
constexpr uint16_t Ark::FeatureShowWarnings = 1 << 5
 
constexpr uint16_t Ark::DefaultFeatures = FeatureRemoveUnusedVars | FeatureShowWarnings
 
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.1
Date
2020-10-27

Definition in file Constants.hpp.

Macro Definition Documentation

◆ ARK_CACHE_DIRNAME

#define ARK_CACHE_DIRNAME   "__arkscript__"

Definition at line 25 of file Constants.hpp.

◆ ARK_COMPILATION_OPTIONS

#define ARK_COMPILATION_OPTIONS   ""

Definition at line 23 of file Constants.hpp.

◆ ARK_COMPILER

#define ARK_COMPILER   "AppleClang"

Definition at line 24 of file Constants.hpp.

◆ ARK_NO_NAME_FILE

#define ARK_NO_NAME_FILE   "FILE"

Definition at line 26 of file Constants.hpp.

◆ ARK_PLATFORM_NAME

#define ARK_PLATFORM_NAME   "Other"

Definition at line 39 of file Constants.hpp.

Variable Documentation

◆ ARK_VERSION

constexpr int ARK_VERSION = (ARK_VERSION_MAJOR << 16) + (ARK_VERSION_MINOR << 8) + ARK_VERSION_PATCH
constexpr

Definition at line 20 of file Constants.hpp.

◆ ARK_VERSION_MAJOR

constexpr int ARK_VERSION_MAJOR = 4
constexpr

◆ ARK_VERSION_MINOR

constexpr int ARK_VERSION_MINOR = 0
constexpr

Definition at line 17 of file Constants.hpp.

Referenced by main(), Ark::Repl::print_repl_header(), and Ark::Compiler::pushFileHeader().

◆ ARK_VERSION_PATCH

constexpr int ARK_VERSION_PATCH = 0
constexpr

Definition at line 18 of file Constants.hpp.

Referenced by main(), Ark::Repl::print_repl_header(), and Ark::Compiler::pushFileHeader().

◆ ARK_VERSION_STR

constexpr char ARK_VERSION_STR[4] = { ARK_VERSION_MAJOR + '0', ARK_VERSION_MINOR + '0', ARK_VERSION_PATCH + '0', 0x00 }
constexpr

Definition at line 21 of file Constants.hpp.

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