move casting of types to into process_event function
This commit is contained in:
parent
c8702b3322
commit
b1945fda35
|
@ -384,10 +384,7 @@ pub fn generate_method<W: Write>(
|
||||||
}
|
}
|
||||||
|
|
||||||
writeln!(w, "let flags = *func.get_function_flags();")?;
|
writeln!(w, "let flags = *func.get_function_flags();")?;
|
||||||
writeln!(
|
writeln!(w, "process_event(self.as_uobject(), func, &mut params);")?;
|
||||||
w,
|
|
||||||
"process_event(self.as_ptr() as *const _, func, &mut params as *mut _);"
|
|
||||||
)?;
|
|
||||||
writeln!(w, "*func.get_function_flags_mut() = flags;")?;
|
writeln!(w, "*func.get_function_flags_mut() = flags;")?;
|
||||||
|
|
||||||
for param in &method.parameters {
|
for param in &method.parameters {
|
||||||
|
|
Loading…
Reference in a new issue