Alias stub types to rust types where possible

This commit is contained in:
lumi 2025-06-25 23:16:42 +10:00
parent 2967513cbb
commit cbb47840e4
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -9,12 +9,12 @@ use std::{
#[allow(non_camel_case_types)]
pub mod stub_types {
pub struct any;
pub struct nil;
pub struct boolean;
pub struct lightuserdata;
pub struct number;
pub struct integer;
pub struct string;
pub type nil = ();
pub type boolean = bool;
pub type lightuserdata = *mut ();
pub type number = f64;
pub type integer = i64;
pub type string = &'static str;
pub struct table;
pub struct function;
pub struct userdata;