pub fn exit_code(code: u32) -> ExitCode
Convert exit code to std::process::ExitCode
On Windows, this supports the full u32 range including STATUS_CONTROL_C_EXIT (0xC000013A). On other platforms, only the lower 8 bits are used.