Skip to main content

kv_asm_array

Macro kv_asm_array 

Source
kv_asm_array!() { /* proc-macro */ }
Expand description

Same as kv_asm!() but outputs an array of string literals for testing.

§Example

let lines: &[&str] = kv_asm_array!(
    mov r0, 0
    add r1, r2
);
assert_eq!(lines[0], "mov r0, 0");