class

FLiveCoding

Module
MowoEngine
Header
#include "Core/LiveCoding.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
boolIsAvailableFalse, with the reason, where Live Coding cannot run: not Windows, a packaged build with no tree beside it, mbt never published.
boolStartStarts compiling every .cpp changed since the running binaries were linked.
boolIsCompiling
voidTickApplies a finished compile.
voidRegisterConsoleCommandLiveCoding at the console; Engine::Initialize registers it.
voidShutdownWaits for a compile still running, so its thread is not torn down under it at exit.
int32_tRunCompileSynchronous halves, for tests and tools: run mbt livecoding with the extra arguments and write its report to reportPath; then apply that report.
FResultApplyReport
FResultLastResult
uint32_tSuccessfulPatches
uint32_tCompletedCompilesCompiles that finished and were applied (or refused) this session, so a UI can tell a new outcome from the one it already showed.
FProgressCompileProgress
std::stringSourceTreeRootThe tree the running binaries were built from, found by walking up from the executable; empty in a packaged build.

Function details

IsAvailable

C++
static bool IsAvailable(std::string* outWhy = nullptr)

False, with the reason, where Live Coding cannot run: not Windows, a packaged build with no tree beside it, mbt never published.

Start

C++
static bool Start()

Starts compiling every .cpp changed since the running binaries were linked. False when a compile is already running or Live Coding is unavailable (the reason is logged).

IsCompiling

C++
static bool IsCompiling()

Tick

C++
static void Tick()

Applies a finished compile. Called once a frame by the engine loop.

RegisterConsoleCommand

C++
static void RegisterConsoleCommand()

LiveCoding at the console; Engine::Initialize registers it.

Shutdown

C++
static void Shutdown()

Waits for a compile still running, so its thread is not torn down under it at exit.

RunCompile

C++
static int32_t RunCompile(const std::vector<std::string>& extraArgs, const std::string& reportPath, std::string& outOutput)

Synchronous halves, for tests and tools: run mbt livecoding with the extra arguments and write its report to reportPath; then apply that report. RunCompile returns mbt's exit code (-1 when it could not run).

ApplyReport

C++
static FResult ApplyReport(const std::string& reportPath)

LastResult

C++
static FResult LastResult()

SuccessfulPatches

C++
static uint32_t SuccessfulPatches()

CompletedCompiles

C++
static uint32_t CompletedCompiles()

Compiles that finished and were applied (or refused) this session, so a UI can tell a new outcome from the one it already showed.

CompileProgress

C++
static FProgress CompileProgress()

SourceTreeRoot

C++
static std::string SourceTreeRoot()

The tree the running binaries were built from, found by walking up from the executable; empty in a packaged build.

Generated from Core/LiveCoding.h via mowoengine.json · Oct 27, 2026Version 1.0.0