C++, remove the experimental flag

The platform namespace is now always enabled.
This commit is contained in:
Olivier Goffart 2023-07-28 09:26:54 +02:00 committed by Olivier Goffart
parent 3a807e46c1
commit fd7fc5ab9b
12 changed files with 41 additions and 55 deletions

View file

@ -722,10 +722,10 @@ fn gen_interpreter(
#[derive(Clone, Copy)]
pub struct EnabledFeatures {
pub interpreter: bool,
pub experimental: bool,
pub backend_qt: bool,
pub std: bool,
pub renderer_software: bool,
pub renderer_skia: bool,
}
impl EnabledFeatures {
@ -735,9 +735,6 @@ impl EnabledFeatures {
if self.interpreter {
defines += "#define SLINT_FEATURE_INTERPRETER\n";
}
if self.experimental {
defines += "#define SLINT_FEATURE_EXPERIMENTAL\n";
}
if self.backend_qt {
defines += "#define SLINT_FEATURE_BACKEND_QT\n";
}
@ -747,6 +744,9 @@ impl EnabledFeatures {
if self.renderer_software {
defines += "#define SLINT_FEATURE_RENDERER_SOFTWARE\n";
}
if self.renderer_skia {
defines += "#define SLINT_FEATURE_RENDERER_SKIA\n";
}
defines
}
}