mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Add support for the log
crate (#1283)
This commit is contained in:
parent
80830bbece
commit
2c416670e5
3 changed files with 22 additions and 1 deletions
|
@ -1959,7 +1959,7 @@ fn compile_builtin_function_call(
|
|||
let window_tokens = access_window_field(ctx);
|
||||
quote!(#window_tokens.scale_factor())
|
||||
}
|
||||
BuiltinFunction::Debug => quote!(println!("{:?}", #(#a)*)),
|
||||
BuiltinFunction::Debug => quote!(slint::internal::debug(#(#a)*)),
|
||||
BuiltinFunction::Mod => quote!((#(#a as i32)%*)),
|
||||
BuiltinFunction::Round => quote!((#(#a)* as f64).round()),
|
||||
BuiltinFunction::Ceil => quote!((#(#a)* as f64).ceil()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue