mirror of https://github.com/AxioDL/boo.git
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:
parent
660df8f7e6
commit
f2ab814ce1
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue