Skip to content

Commit

Permalink
add sq type names to all handle types
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot committed Aug 26, 2024
1 parent b144871 commit af1aa23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/high/squirrel_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,15 @@ sqvm_name! {
Vector3 = "vector";
Option<&mut CPlayer> = "entity";
SQHandle<SQClosure> = "var";
SQHandle<SQTable> = "table";
SQHandle<SQString> = "string";
SQHandle<SQArray> = "array";
SQHandle<SQFloat> = "float";
SQHandle<SQInteger> = "int";
SQHandle<SQFunctionProto> = "var";
SQHandle<SQStructInstance> = "var";
SQHandle<SQBool> = "bool";
SQHandle<SQNativeClosure> = "var";
SQObject = "var";
() = "void";
}
Expand Down
2 changes: 1 addition & 1 deletion src/macros/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ macro_rules! offset_functions {
$(pub $name: $t,)*
}

#[allow(clippy::missing_safety_doc,clippy::useless_transmute)]
#[allow(clippy::missing_safety_doc,clippy::useless_transmute, clippy::macro_metavars_in_unsafe)]
impl $struct_name {
pub unsafe fn try_init(dll: &$crate::mid::engine::DLLPointer, static_var: &$crate::exports::OnceCell<Self>) {
use $crate::mid::engine::WhichDll;
Expand Down

0 comments on commit af1aa23

Please sign in to comment.