mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
C++: Add iostream to the list of included header files
When using debug() we generate calls to `std::cout`.
This commit is contained in:
parent
25fb6ade76
commit
8d0a73c1d4
1 changed files with 1 additions and 0 deletions
|
@ -502,6 +502,7 @@ pub fn generate(doc: &Document) -> impl std::fmt::Display {
|
|||
file.includes.push("<limits>".into());
|
||||
file.includes.push("<cstdlib>".into()); // TODO: ideally only include this if needed (by to_float)
|
||||
file.includes.push("<cmath>".into()); // TODO: ideally only include this if needed (by floor/ceil/round)
|
||||
file.includes.push("<iostream>".into()); // TODO: ideally only include this if needed (by std::cout from debug())
|
||||
file.includes.push("<slint.h>".into());
|
||||
|
||||
for (path, er) in doc.root_component.embedded_file_resources.borrow().iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue