C++: Enable support for the Slint software renderer by default (#10217)
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions

This is in line with Rust.
This commit is contained in:
Simon Hausmann 2025-12-05 22:27:54 +01:00 committed by GitHub
parent 41be30ee6a
commit ffee1e01fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -793,9 +793,11 @@ public:
/// The first template parameter (PixelType) must be specified and can be either Rgb565Pixel or
/// Rgb8Pixel.
template<typename PixelType, typename Callback>
# if !defined(__clang__) || __clang_major__ >= 17
requires requires(Callback callback) {
callback(size_t(0), size_t(0), size_t(0), [&callback](std::span<PixelType>) { });
callback(size_t(0), size_t(0), size_t(0), [&callback](std::span<PixelType>) {});
}
# endif
PhysicalRegion render_by_line(Callback process_line_callback) const
{
auto process_line_fn = [](void *process_line_callback_ptr, uintptr_t line,