Skip to main content

HurrayStatus

Type Alias HurrayStatus 

Source
pub type HurrayStatus = i32;
Expand description

Integer status code returned by every Hurray C ABI function.

Zero (HURRAY_OK) indicates success. All negative values indicate errors. Positive values are reserved for future use.

ยงExamples

use hurray_ffi::{HurrayStatus, HURRAY_OK};

fn check(s: HurrayStatus) {
    assert_eq!(s, HURRAY_OK);
}
check(HURRAY_OK);