lune/crates/lune-std-ffi/src/c/void_info.rs
2024-10-19 07:31:45 +00:00

27 lines
462 B
Rust

use libffi::middle::Type;
use mlua::prelude::*;
use crate::ffi::{FfiSignedness, FfiSize};
pub struct CVoidInfo();
impl FfiSignedness for CVoidInfo {
fn get_signedness(&self) -> bool {
false
}
}
impl FfiSize for CVoidInfo {
fn get_size(&self) -> usize {
0
}
}
impl CVoidInfo {
pub fn new() -> Self {
Self()
}
pub fn get_middle_type() -> Type {
Type::void()
}
}
impl LuaUserData for CVoidInfo {}