Compiler module

compiler_create_workspace

procedureSource

Starts a new workspace, an independent build with its own options, code and output. name shows up in messages and errors.

Example↗
#run {
    w := compiler_create_workspace("scratch");
    assert(get_name(w) == "scratch");
    compiler_destroy_workspace(w);
}

main :: () {}
compiler_create_workspace :: (name := "") -> Workspace

Parameters

name := ""

Returns

Workspace

See also