move casting of types to into process_event function

This commit is contained in:
Janis 2023-04-21 22:03:25 +02:00
parent c8702b3322
commit b1945fda35

View file

@ -384,10 +384,7 @@ pub fn generate_method<W: Write>(
}
writeln!(w, "let flags = *func.get_function_flags();")?;
writeln!(
w,
"process_event(self.as_ptr() as *const _, func, &mut params as *mut _);"
)?;
writeln!(w, "process_event(self.as_uobject(), func, &mut params);")?;
writeln!(w, "*func.get_function_flags_mut() = flags;")?;
for param in &method.parameters {