mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
C++: rename SLINT_FEATURE_STD in SLINT_FEATURE_FREESTANDING with the opposite meaning
This commit is contained in:
parent
cc006e8baf
commit
146ed520e8
11 changed files with 33 additions and 30 deletions
|
@ -148,10 +148,11 @@ public:
|
|||
/// Returns a new WindowAdapter
|
||||
virtual std::unique_ptr<WindowAdapter> create_window_adapter() = 0;
|
||||
|
||||
#ifndef SLINT_FEATURE_STD
|
||||
#ifdef SLINT_FEATURE_FREESTANDING
|
||||
/// Returns the amount of milliseconds since start of the application.
|
||||
///
|
||||
/// This function should only be implemented if the runtime is compiled with no_std
|
||||
/// This function should only be implemented if the runtime is compiled with
|
||||
/// SLINT_FEATURE_FREESTANDING
|
||||
virtual std::chrono::milliseconds duration_since_start() const
|
||||
{
|
||||
return {};
|
||||
|
@ -230,7 +231,7 @@ inline void set_platform(std::unique_ptr<Platform> platform)
|
|||
(void)w.release();
|
||||
},
|
||||
[]([[maybe_unused]] void *p) -> uint64_t {
|
||||
#ifdef SLINT_FEATURE_STD
|
||||
#ifndef SLINT_FEATURE_FREESTANDING
|
||||
return 0;
|
||||
#else
|
||||
return reinterpret_cast<const Platform *>(p)->duration_since_start().count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue