ClosedBit error docs

CB_ERR_UNKNOWN_FUNCTION

Unknown function. A function call is not built in, not defined in the source, and not exported by a loaded library.

Why it happens

A function call is not built in, not defined in the source, and not exported by a loaded library.

How to fix it

Add the required library, define the function before calling it, or correct the function name.

Copy-paste fix pattern
library CB-Render

fn main() {
    init_window(640, 360, "ClosedBit Window")
    clear(0x071018)
    draw_text(24, 24, "Ready", 0xFFFFFF, 24)
    swap_buffers_fast()
}
Runtime and Studio now show this kind of page from the error dialog: plain message first, stable code second, original details third.