kameloso.constants

A collection of constants used throughout the program.

This acts as a compile-time configuration file to reduce ad-hoc magic numbers.

Members

Enums

BufferSize
enum BufferSize

Buffer sizes in bytes.

ConnectionDefaultFloats
enum ConnectionDefaultFloats

Connection defaults, floating point version.

ConnectionDefaultIntegers
enum ConnectionDefaultIntegers

Connection defaults, integers version.

KamelosoDefaultChars
enum KamelosoDefaultChars

Kameloso defaults, character version.

KamelosoDefaultIntegers
enum KamelosoDefaultIntegers

Kameloso defaults, integers version.

KamelosoDefaults
enum KamelosoDefaults

Kameloso defaults, strings version.

KamelosoFilenames
enum KamelosoFilenames

Kameloso filenames.

KamelosoInfo
enum KamelosoInfo

Meta-information about the program.

MagicErrorStrings
enum MagicErrorStrings

Hardcoded error strings.

MagicStrings
enum MagicStrings

Hardcoded non-error strings.

ShellReturnValue
enum ShellReturnValue

Magic number shell exit codes.

Timeout
enum Timeout

Various timeouts, in seconds unless specified otherwise.

Functions

buildCompilerVersionString
auto buildCompilerVersionString()

Replaces the following expression and lowers compilation memory by avoiding use of compile-time format.

buildVersionString
auto buildVersionString()

Replaces the following expression and lowers compilation memory by avoiding use of compile-time format.

Manifest constants

compiler
enum compiler;

String of the compiler that was used to compile this binary with. Here: dmd.

compiler
enum compiler;

String of the compiler that was used to compile this binary with. Here: ldc.

compiler
enum compiler;

String of the compiler that was used to compile this binary with. Here: gdc.

compiler
enum compiler;

String of the compiler that was used to compile this binary with. Here: no idea.

Structs

DefaultColours
struct DefaultColours

Default colours gathered in one struct namespace.

Meta