Skip to main content

cove_lex_ir

Function cove_lex_ir 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cove_lex_ir( text: *const u8, len: usize, ) -> *mut u8
Expand description

Colours the disassembly in text and answers a tiling of it, as an answer block. See crate::lex_ir_json.

text is what cove_compile or cove_run put in ir, handed back so that the colouring is of the text the caller is actually showing. Like cove_lex it neither checks nor runs anything, and for the same reason it is a call a page can make on its own thread.

ยงSafety

As cove_compile.