Skip to content

MoonLiveCompiler

Source: MoonLiveCompiler.h

CompileResult

struct CompileResult
src/core/moonlive/MoonLiveCompiler.h:66

Public Attributes

bool ok = false

const char * error = ""

uint16_t errorCol = 0

size_t len = 0

DeclaredControl members

uint8_t memberCount = 0

uint16_t stringLen = 0

char className = ""

EntryPoint entries

uint8_t entryCount = 0

Public Static Attributes

constexpr uint16_t kStringPool = 128

EntryPoint

struct EntryPoint
src/core/moonlive/MoonLiveCompiler.h:44

Public Attributes

const char * name = nullptr : into the source, or the engine's own copy after compile

uint8_t nameLen = 0

uint16_t offset = 0 : byte offset of its first instruction within the block

RetType ret = RetType::Void : What this function returns, as the script DECLARED it.