This repository has been archived on 2024-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
2023-03-23 17:17:51 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 YAC
|
|
|
|
* SPDX-License-Identifier: FSFAP
|
|
|
|
*
|
|
|
|
* Copying and distribution of this file, with or without modification, are
|
2023-01-15 08:54:38 +00:00
|
|
|
* permitted in any medium without royalty provided the copyright notice and
|
|
|
|
* this notice are preserved. This file is offered as-is, without any warranty.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![allow(non_snake_case)]
|
|
|
|
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
|
|
|
|
2023-01-15 20:53:21 +00:00
|
|
|
extern crate core;
|
2023-01-15 08:54:38 +00:00
|
|
|
|
|
|
|
pub fn exit(code: u32) -> ! {
|
2023-01-17 19:43:20 +00:00
|
|
|
unsafe { libc::exit(code as i32 as libc::c_int); }
|
2023-01-15 08:54:38 +00:00
|
|
|
}
|