1
2
3
4
5
6
7
8
extern "C" {
    fn signalError(messageOffset: *const u8, messageLength: i32) -> !;
}

#[inline(always)]
pub fn signal_error(message: &[u8]) -> ! {
    unsafe { signalError(message.as_ptr(), message.len() as i32) }
}