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:
Lioncash 2019-09-09 21:02:28 -04:00
parent 660df8f7e6
commit f2ab814ce1
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ static inline ComPtr<T>* ReferenceComPtr(ComPtr<T>& ptr) {
return static_cast<T>(key) != 0; \
} \
constexpr bool False(type key) noexcept { \
using T = std::underlying_type_t<type>; \
return static_cast<T>(key) == 0; \
return !True(key); \
}
#endif