Skip to main content

last_error_code_symbol

Function last_error_code_symbol 

Source
pub fn last_error_code_symbol(prefix: &str) -> String
Expand description

Return the C symbol name for reading the thread-local last error code.

Format: {prefix}_last_error_code

§Example

let sym = last_error_code_symbol("krz");
assert_eq!(sym, "krz_last_error_code");