mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-10 05:57:41 +00:00
System: Implement False() in terms of True()
This is just a negation, so we can do this to place the logic in one spot.
This commit is contained in:
@@ -56,8 +56,7 @@ static inline ComPtr<T>* ReferenceComPtr(ComPtr<T>& ptr) {
|
|||||||
return static_cast<T>(key) != 0; \
|
return static_cast<T>(key) != 0; \
|
||||||
} \
|
} \
|
||||||
constexpr bool False(type key) noexcept { \
|
constexpr bool False(type key) noexcept { \
|
||||||
using T = std::underlying_type_t<type>; \
|
return !True(key); \
|
||||||
return static_cast<T>(key) == 0; \
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user