#[unsafe(no_mangle)]pub extern "C" fn ss_runtime_error_message(code: i32) -> *const c_charExpand description
The wording behind a code from ss_runtime_get_last_error, as
NUL-terminated UTF-8.
Takes the code, not a context, so it is a pure lookup: no lifetime to
respect, nothing to free, and the same answer forever. An unrecognised code
— including 0, which is “no error” — gives an empty string, so the result
goes straight into a log call without a branch.
The text carries no numbers. InvalidVersion reads “Invalid SSAB version”;
a Player that wants to say which versions should compare
ss_runtime_ssab_schema_version against the pack’s own version field,
which gives it two integers rather than a sentence to parse.