Route debug() calls in Slint consistently through Platform's debug_log() (#5718)

This commit is contained in:
Simon Hausmann 2024-07-29 16:31:09 +02:00 committed by GitHub
parent d8e7226cd5
commit 8a7db55bb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 7 deletions

View file

@ -152,6 +152,11 @@ pub extern "C" fn slint_string_to_float(string: &SharedString, value: &mut f32)
}
}
#[no_mangle]
pub extern "C" fn slint_debug(string: &SharedString) {
i_slint_core::debug_log!("{string}");
}
#[cfg(not(feature = "std"))]
mod allocator {
use core::alloc::Layout;