mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
11 lines
274 B
Rust
11 lines
274 B
Rust
use core::ffi::c_char;
|
|
use std::vec::Vec;
|
|
|
|
pub const CHAR_IS_SIGNED: bool = c_char::MIN as u8 != u8::MIN;
|
|
|
|
pub fn get_platform_value() -> Vec<(&'static str, &'static str)> {
|
|
vec![(
|
|
"char_variant",
|
|
if CHAR_IS_SIGNED { "schar" } else { "uchar" },
|
|
)]
|
|
}
|